From cf359fbe02d33d46a3cb1da7067d30765b0dda3b Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Tue, 28 Dec 2010 08:13:11 +0800 Subject: netbase: upgrade to version 4.44 upgrade from 0.43 to 0.44 Signed-off-by: Dongxiao Xu --- .../netbase/netbase-4.43/colinux/interfaces | 8 --- .../netbase/netbase-4.43/epia/interfaces | 10 ---- meta/recipes-core/netbase/netbase-4.43/hosts | 2 - meta/recipes-core/netbase/netbase-4.43/init | 52 ------------------ meta/recipes-core/netbase/netbase-4.43/interfaces | 30 ----------- .../netbase/netbase-4.43/mtx-1/interfaces | 29 ---------- meta/recipes-core/netbase/netbase-4.43/nfsroot | 39 -------------- .../netbase/netbase-4.43/nokia800/interfaces | 5 -- .../recipes-core/netbase/netbase-4.43/openmn/hosts | 2 - .../netbase/netbase-4.43/openmn/interfaces | 10 ---- .../netbase/netbase-4.43/qemuarm/interfaces | 5 -- .../netbase/netbase-4.43/qemuarmv6/interfaces | 5 -- .../netbase/netbase-4.43/qemuarmv7/interfaces | 5 -- .../netbase/netbase-4.43/qemux86-64/interfaces | 8 --- .../netbase/netbase-4.43/qemux86/interfaces | 8 --- .../netbase/netbase-4.43/tosa/interfaces | 24 --------- .../netbase/netbase-4.43/wrt54/interfaces | 23 -------- .../netbase/netbase-4.43/xxs1500/interfaces | 15 ------ .../netbase/netbase-4.44/colinux/interfaces | 8 +++ .../netbase/netbase-4.44/epia/interfaces | 10 ++++ meta/recipes-core/netbase/netbase-4.44/hosts | 2 + meta/recipes-core/netbase/netbase-4.44/init | 52 ++++++++++++++++++ meta/recipes-core/netbase/netbase-4.44/interfaces | 30 +++++++++++ .../netbase/netbase-4.44/mtx-1/interfaces | 29 ++++++++++ meta/recipes-core/netbase/netbase-4.44/nfsroot | 39 ++++++++++++++ .../netbase/netbase-4.44/nokia800/interfaces | 5 ++ .../recipes-core/netbase/netbase-4.44/openmn/hosts | 2 + .../netbase/netbase-4.44/openmn/interfaces | 10 ++++ .../netbase/netbase-4.44/qemuarm/interfaces | 5 ++ .../netbase/netbase-4.44/qemuarmv6/interfaces | 5 ++ .../netbase/netbase-4.44/qemuarmv7/interfaces | 5 ++ .../netbase/netbase-4.44/qemux86-64/interfaces | 8 +++ .../netbase/netbase-4.44/qemux86/interfaces | 8 +++ .../netbase/netbase-4.44/tosa/interfaces | 24 +++++++++ .../netbase/netbase-4.44/wrt54/interfaces | 23 ++++++++ .../netbase/netbase-4.44/xxs1500/interfaces | 15 ++++++ meta/recipes-core/netbase/netbase_4.43.bb | 61 ---------------------- meta/recipes-core/netbase/netbase_4.44.bb | 61 ++++++++++++++++++++++ 38 files changed, 341 insertions(+), 341 deletions(-) delete mode 100644 meta/recipes-core/netbase/netbase-4.43/colinux/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/epia/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/hosts delete mode 100644 meta/recipes-core/netbase/netbase-4.43/init delete mode 100644 meta/recipes-core/netbase/netbase-4.43/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/mtx-1/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/nfsroot delete mode 100644 meta/recipes-core/netbase/netbase-4.43/nokia800/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/openmn/hosts delete mode 100644 meta/recipes-core/netbase/netbase-4.43/openmn/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/qemuarm/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/qemuarmv6/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/qemuarmv7/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/qemux86-64/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/qemux86/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/tosa/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/wrt54/interfaces delete mode 100644 meta/recipes-core/netbase/netbase-4.43/xxs1500/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/colinux/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/epia/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/hosts create mode 100644 meta/recipes-core/netbase/netbase-4.44/init create mode 100644 meta/recipes-core/netbase/netbase-4.44/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/mtx-1/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/nfsroot create mode 100644 meta/recipes-core/netbase/netbase-4.44/nokia800/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/openmn/hosts create mode 100644 meta/recipes-core/netbase/netbase-4.44/openmn/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/qemuarm/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/qemuarmv6/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/qemuarmv7/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/qemux86-64/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/qemux86/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/tosa/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/wrt54/interfaces create mode 100644 meta/recipes-core/netbase/netbase-4.44/xxs1500/interfaces delete mode 100644 meta/recipes-core/netbase/netbase_4.43.bb create mode 100644 meta/recipes-core/netbase/netbase_4.44.bb (limited to 'meta/recipes-core') diff --git a/meta/recipes-core/netbase/netbase-4.43/colinux/interfaces b/meta/recipes-core/netbase/netbase-4.43/colinux/interfaces deleted file mode 100644 index 0e495e164e..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/colinux/interfaces +++ /dev/null @@ -1,8 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - -# Wired or wireless interfaces -iface eth0 inet dhcp diff --git a/meta/recipes-core/netbase/netbase-4.43/epia/interfaces b/meta/recipes-core/netbase/netbase-4.43/epia/interfaces deleted file mode 100644 index 673618f636..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/epia/interfaces +++ /dev/null @@ -1,10 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - -# Ethernet -auto eth0 -iface eth0 inet dhcp - diff --git a/meta/recipes-core/netbase/netbase-4.43/hosts b/meta/recipes-core/netbase/netbase-4.43/hosts deleted file mode 100644 index 2f332451b5..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/hosts +++ /dev/null @@ -1,2 +0,0 @@ -127.0.0.1 localhost.localdomain localhost - diff --git a/meta/recipes-core/netbase/netbase-4.43/init b/meta/recipes-core/netbase/netbase-4.43/init deleted file mode 100644 index 8a67e1cef2..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/init +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# -### BEGIN INIT INFO -# Provides: networking -# Required-Start: $local_fs mountvirtfs -# Required-Stop: $local_fs -# Default-Start: S -# Default-Stop: 0 6 -# Short-Description: Raise network interfaces and configure them -### END INIT INFO - -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin - -if ! [ -x /sbin/ifup ]; then - exit 0 -fi - -case "$1" in - start) - echo -n "Configuring network interfaces... " - ifup -a - echo "done." - ;; - stop) - if sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | - grep -q "^/ nfs$"; then - echo "NOT deconfiguring network interfaces: / is an NFS mount" - elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | - grep -q "^/ smbfs$"; then - echo "NOT deconfiguring network interfaces: / is an SMB mount" - elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\2/p' /proc/mounts | - grep -qE '^(nfs|smbfs|ncp|coda)$'; then - echo "NOT deconfiguring network interfaces: network shares still mounted." - else - echo -n "Deconfiguring network interfaces... " - ifdown -a - echo "done." - fi - ;; - force-reload|restart) - echo -n "Reconfiguring network interfaces... " - ifdown -a - ifup -a - echo "done." - ;; - *) - echo "Usage: /etc/init.d/networking {start|stop|restart|force-reload}" - exit 1 - ;; -esac - -exit 0 diff --git a/meta/recipes-core/netbase/netbase-4.43/interfaces b/meta/recipes-core/netbase/netbase-4.43/interfaces deleted file mode 100644 index b06924fa94..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/interfaces +++ /dev/null @@ -1,30 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - -# Wireless interfaces -iface wlan0 inet dhcp - wireless_mode managed - wireless_essid any - wpa-driver wext - wpa-conf /etc/wpa_supplicant.conf - -iface atml0 inet dhcp - -# Wired or wireless interfaces -iface eth0 inet dhcp -iface eth1 inet dhcp - -# Ethernet/RNDIS gadget (g_ether) -# ... or on host side, usbnet and random hwaddr -iface usb0 inet static - address 192.168.7.2 - netmask 255.255.255.0 - network 192.168.7.0 - gateway 192.168.7.1 - -# Bluetooth networking -iface bnep0 inet dhcp - diff --git a/meta/recipes-core/netbase/netbase-4.43/mtx-1/interfaces b/meta/recipes-core/netbase/netbase-4.43/mtx-1/interfaces deleted file mode 100644 index a7c6da5752..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/mtx-1/interfaces +++ /dev/null @@ -1,29 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - -# Ethernet -auto eth0 -iface eth0 inet dhcp - -# wlan interface 1 for clients -auto wlan0 -iface wlan0 inet static - address 10.0.0.1 - netmask 255.0.0.0 - wireless_mode master - wireless_essid cube-ap - wireless_channel 1 - -# wlan interface 2 for mesh -auto wlan1 -iface wlan1 inet static - address 172.16.0.1 - netmask 255.240.0.0 - broadcast 172.31.255.255 - wireless_mode ad-hoc - wireless_essid cube-mesh - wireless_channel 11 - wireless_rts 250 diff --git a/meta/recipes-core/netbase/netbase-4.43/nfsroot b/meta/recipes-core/netbase/netbase-4.43/nfsroot deleted file mode 100644 index fc384a8ea5..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/nfsroot +++ /dev/null @@ -1,39 +0,0 @@ -#! /bin/sh - -# In case the interface is used as nfsroot, avoid ifup, otherwise -# nfsroot may lose response - -nfsroot=0 - -if test "x$IFACE" = xlo ; then - exit 0 -fi - -exec 9<&0 < /proc/mounts -while read dev mtpt fstype rest; do - if test $mtpt = "/" ; then - case $fstype in - nfs | nfs4) - nfsroot=1 - nfs_addr=`echo $rest | sed -e 's/^.*addr=\([0-9.]*\).*$/\1/'` - break - ;; - *) - ;; - esac - fi -done -exec 0<&9 9<&- - -test $nfsroot -eq 0 && exit 0 - -if test -x /sbin/ip ; then - nfs_iface=`ip route get $nfs_addr | grep dev | sed -e 's/^.*dev \([-a-z0-9.]*\).*$/\1/'` -fi - -if test "x$IFACE" = "x$nfs_iface" ; then - echo "ifup skipped for nfsroot interface $nfs_iface" - exit 1 -fi - -exit 0 diff --git a/meta/recipes-core/netbase/netbase-4.43/nokia800/interfaces b/meta/recipes-core/netbase/netbase-4.43/nokia800/interfaces deleted file mode 100644 index 16967763e5..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/nokia800/interfaces +++ /dev/null @@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.43/openmn/hosts b/meta/recipes-core/netbase/netbase-4.43/openmn/hosts deleted file mode 100644 index 0205b98fc2..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/openmn/hosts +++ /dev/null @@ -1,2 +0,0 @@ -127.0.0.1 localhost.localdomain localhost -192.168.233.1 www.mn-solutions.de diff --git a/meta/recipes-core/netbase/netbase-4.43/openmn/interfaces b/meta/recipes-core/netbase/netbase-4.43/openmn/interfaces deleted file mode 100644 index 9ebe9b8ff1..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/openmn/interfaces +++ /dev/null @@ -1,10 +0,0 @@ -auto lo -auto eth1 - -iface lo inet loopback - -iface eth0 inet dhcp - -iface eth1 inet dhcp - wireless_mode managed - wireless_essid any diff --git a/meta/recipes-core/netbase/netbase-4.43/qemuarm/interfaces b/meta/recipes-core/netbase/netbase-4.43/qemuarm/interfaces deleted file mode 100644 index 16967763e5..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/qemuarm/interfaces +++ /dev/null @@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.43/qemuarmv6/interfaces b/meta/recipes-core/netbase/netbase-4.43/qemuarmv6/interfaces deleted file mode 100644 index 16967763e5..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/qemuarmv6/interfaces +++ /dev/null @@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.43/qemuarmv7/interfaces b/meta/recipes-core/netbase/netbase-4.43/qemuarmv7/interfaces deleted file mode 100644 index 16967763e5..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/qemuarmv7/interfaces +++ /dev/null @@ -1,5 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.43/qemux86-64/interfaces b/meta/recipes-core/netbase/netbase-4.43/qemux86-64/interfaces deleted file mode 100644 index f62b9a897d..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/qemux86-64/interfaces +++ /dev/null @@ -1,8 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - - - diff --git a/meta/recipes-core/netbase/netbase-4.43/qemux86/interfaces b/meta/recipes-core/netbase/netbase-4.43/qemux86/interfaces deleted file mode 100644 index f62b9a897d..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/qemux86/interfaces +++ /dev/null @@ -1,8 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - - - diff --git a/meta/recipes-core/netbase/netbase-4.43/tosa/interfaces b/meta/recipes-core/netbase/netbase-4.43/tosa/interfaces deleted file mode 100644 index 0da7168535..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/tosa/interfaces +++ /dev/null @@ -1,24 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - -# Wireless interfaces -iface wlan0 inet dhcp - wireless_type wlan-ng - wireless_mode Managed - pre-up modprobe prism2_usb -# pre-up /sbin/usbctl on 1 -# post-down /sbin/usbctl off 1 - post-down rmmod prism2_usb - -# Wired or wireless interfaces -iface eth0 inet dhcp -iface eth1 inet dhcp - -# Zaurus usbnet -iface usbd0 inet dhcp - -# usbnet from the other side -iface usb0 inet dhcp diff --git a/meta/recipes-core/netbase/netbase-4.43/wrt54/interfaces b/meta/recipes-core/netbase/netbase-4.43/wrt54/interfaces deleted file mode 100644 index 8b2852ac51..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/wrt54/interfaces +++ /dev/null @@ -1,23 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# loopback interface -auto lo -iface lo inet loopback - -# the 4 LAN ports -auto vlan0 -iface vlan0 inet static - address 192.168.1.1 - netmask 255.255.255.0 - -# WAN port -auto vlan1 -iface vlan1 inet dhcp - -# wireless interface -auto eth1 -iface eth1 inet static - wireless_mode master - wireless_essid wrt - address 10.0.0.1 - netmask 255.255.255.0 diff --git a/meta/recipes-core/netbase/netbase-4.43/xxs1500/interfaces b/meta/recipes-core/netbase/netbase-4.43/xxs1500/interfaces deleted file mode 100644 index 23ccccd2dd..0000000000 --- a/meta/recipes-core/netbase/netbase-4.43/xxs1500/interfaces +++ /dev/null @@ -1,15 +0,0 @@ -# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) - -# The loopback interface -auto lo -iface lo inet loopback - -# Ethernet -auto eth0 eth1 -iface eth0 inet static - address 192.168.127.1 - netmask 255.255.255.0 - -iface eth1 inet static - address 192.168.128.1 - netmask 255.255.255.0 diff --git a/meta/recipes-core/netbase/netbase-4.44/colinux/interfaces b/meta/recipes-core/netbase/netbase-4.44/colinux/interfaces new file mode 100644 index 0000000000..0e495e164e --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/colinux/interfaces @@ -0,0 +1,8 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Wired or wireless interfaces +iface eth0 inet dhcp diff --git a/meta/recipes-core/netbase/netbase-4.44/epia/interfaces b/meta/recipes-core/netbase/netbase-4.44/epia/interfaces new file mode 100644 index 0000000000..673618f636 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/epia/interfaces @@ -0,0 +1,10 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Ethernet +auto eth0 +iface eth0 inet dhcp + diff --git a/meta/recipes-core/netbase/netbase-4.44/hosts b/meta/recipes-core/netbase/netbase-4.44/hosts new file mode 100644 index 0000000000..2f332451b5 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/hosts @@ -0,0 +1,2 @@ +127.0.0.1 localhost.localdomain localhost + diff --git a/meta/recipes-core/netbase/netbase-4.44/init b/meta/recipes-core/netbase/netbase-4.44/init new file mode 100644 index 0000000000..8a67e1cef2 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/init @@ -0,0 +1,52 @@ +#!/bin/sh +# +### BEGIN INIT INFO +# Provides: networking +# Required-Start: $local_fs mountvirtfs +# Required-Stop: $local_fs +# Default-Start: S +# Default-Stop: 0 6 +# Short-Description: Raise network interfaces and configure them +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +if ! [ -x /sbin/ifup ]; then + exit 0 +fi + +case "$1" in + start) + echo -n "Configuring network interfaces... " + ifup -a + echo "done." + ;; + stop) + if sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | + grep -q "^/ nfs$"; then + echo "NOT deconfiguring network interfaces: / is an NFS mount" + elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts | + grep -q "^/ smbfs$"; then + echo "NOT deconfiguring network interfaces: / is an SMB mount" + elif sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\2/p' /proc/mounts | + grep -qE '^(nfs|smbfs|ncp|coda)$'; then + echo "NOT deconfiguring network interfaces: network shares still mounted." + else + echo -n "Deconfiguring network interfaces... " + ifdown -a + echo "done." + fi + ;; + force-reload|restart) + echo -n "Reconfiguring network interfaces... " + ifdown -a + ifup -a + echo "done." + ;; + *) + echo "Usage: /etc/init.d/networking {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 diff --git a/meta/recipes-core/netbase/netbase-4.44/interfaces b/meta/recipes-core/netbase/netbase-4.44/interfaces new file mode 100644 index 0000000000..b06924fa94 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/interfaces @@ -0,0 +1,30 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Wireless interfaces +iface wlan0 inet dhcp + wireless_mode managed + wireless_essid any + wpa-driver wext + wpa-conf /etc/wpa_supplicant.conf + +iface atml0 inet dhcp + +# Wired or wireless interfaces +iface eth0 inet dhcp +iface eth1 inet dhcp + +# Ethernet/RNDIS gadget (g_ether) +# ... or on host side, usbnet and random hwaddr +iface usb0 inet static + address 192.168.7.2 + netmask 255.255.255.0 + network 192.168.7.0 + gateway 192.168.7.1 + +# Bluetooth networking +iface bnep0 inet dhcp + diff --git a/meta/recipes-core/netbase/netbase-4.44/mtx-1/interfaces b/meta/recipes-core/netbase/netbase-4.44/mtx-1/interfaces new file mode 100644 index 0000000000..a7c6da5752 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/mtx-1/interfaces @@ -0,0 +1,29 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Ethernet +auto eth0 +iface eth0 inet dhcp + +# wlan interface 1 for clients +auto wlan0 +iface wlan0 inet static + address 10.0.0.1 + netmask 255.0.0.0 + wireless_mode master + wireless_essid cube-ap + wireless_channel 1 + +# wlan interface 2 for mesh +auto wlan1 +iface wlan1 inet static + address 172.16.0.1 + netmask 255.240.0.0 + broadcast 172.31.255.255 + wireless_mode ad-hoc + wireless_essid cube-mesh + wireless_channel 11 + wireless_rts 250 diff --git a/meta/recipes-core/netbase/netbase-4.44/nfsroot b/meta/recipes-core/netbase/netbase-4.44/nfsroot new file mode 100644 index 0000000000..fc384a8ea5 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/nfsroot @@ -0,0 +1,39 @@ +#! /bin/sh + +# In case the interface is used as nfsroot, avoid ifup, otherwise +# nfsroot may lose response + +nfsroot=0 + +if test "x$IFACE" = xlo ; then + exit 0 +fi + +exec 9<&0 < /proc/mounts +while read dev mtpt fstype rest; do + if test $mtpt = "/" ; then + case $fstype in + nfs | nfs4) + nfsroot=1 + nfs_addr=`echo $rest | sed -e 's/^.*addr=\([0-9.]*\).*$/\1/'` + break + ;; + *) + ;; + esac + fi +done +exec 0<&9 9<&- + +test $nfsroot -eq 0 && exit 0 + +if test -x /sbin/ip ; then + nfs_iface=`ip route get $nfs_addr | grep dev | sed -e 's/^.*dev \([-a-z0-9.]*\).*$/\1/'` +fi + +if test "x$IFACE" = "x$nfs_iface" ; then + echo "ifup skipped for nfsroot interface $nfs_iface" + exit 1 +fi + +exit 0 diff --git a/meta/recipes-core/netbase/netbase-4.44/nokia800/interfaces b/meta/recipes-core/netbase/netbase-4.44/nokia800/interfaces new file mode 100644 index 0000000000..16967763e5 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/nokia800/interfaces @@ -0,0 +1,5 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.44/openmn/hosts b/meta/recipes-core/netbase/netbase-4.44/openmn/hosts new file mode 100644 index 0000000000..0205b98fc2 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/openmn/hosts @@ -0,0 +1,2 @@ +127.0.0.1 localhost.localdomain localhost +192.168.233.1 www.mn-solutions.de diff --git a/meta/recipes-core/netbase/netbase-4.44/openmn/interfaces b/meta/recipes-core/netbase/netbase-4.44/openmn/interfaces new file mode 100644 index 0000000000..9ebe9b8ff1 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/openmn/interfaces @@ -0,0 +1,10 @@ +auto lo +auto eth1 + +iface lo inet loopback + +iface eth0 inet dhcp + +iface eth1 inet dhcp + wireless_mode managed + wireless_essid any diff --git a/meta/recipes-core/netbase/netbase-4.44/qemuarm/interfaces b/meta/recipes-core/netbase/netbase-4.44/qemuarm/interfaces new file mode 100644 index 0000000000..16967763e5 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/qemuarm/interfaces @@ -0,0 +1,5 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.44/qemuarmv6/interfaces b/meta/recipes-core/netbase/netbase-4.44/qemuarmv6/interfaces new file mode 100644 index 0000000000..16967763e5 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/qemuarmv6/interfaces @@ -0,0 +1,5 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.44/qemuarmv7/interfaces b/meta/recipes-core/netbase/netbase-4.44/qemuarmv7/interfaces new file mode 100644 index 0000000000..16967763e5 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/qemuarmv7/interfaces @@ -0,0 +1,5 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback diff --git a/meta/recipes-core/netbase/netbase-4.44/qemux86-64/interfaces b/meta/recipes-core/netbase/netbase-4.44/qemux86-64/interfaces new file mode 100644 index 0000000000..f62b9a897d --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/qemux86-64/interfaces @@ -0,0 +1,8 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + + + diff --git a/meta/recipes-core/netbase/netbase-4.44/qemux86/interfaces b/meta/recipes-core/netbase/netbase-4.44/qemux86/interfaces new file mode 100644 index 0000000000..f62b9a897d --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/qemux86/interfaces @@ -0,0 +1,8 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + + + diff --git a/meta/recipes-core/netbase/netbase-4.44/tosa/interfaces b/meta/recipes-core/netbase/netbase-4.44/tosa/interfaces new file mode 100644 index 0000000000..0da7168535 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/tosa/interfaces @@ -0,0 +1,24 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Wireless interfaces +iface wlan0 inet dhcp + wireless_type wlan-ng + wireless_mode Managed + pre-up modprobe prism2_usb +# pre-up /sbin/usbctl on 1 +# post-down /sbin/usbctl off 1 + post-down rmmod prism2_usb + +# Wired or wireless interfaces +iface eth0 inet dhcp +iface eth1 inet dhcp + +# Zaurus usbnet +iface usbd0 inet dhcp + +# usbnet from the other side +iface usb0 inet dhcp diff --git a/meta/recipes-core/netbase/netbase-4.44/wrt54/interfaces b/meta/recipes-core/netbase/netbase-4.44/wrt54/interfaces new file mode 100644 index 0000000000..8b2852ac51 --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/wrt54/interfaces @@ -0,0 +1,23 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# loopback interface +auto lo +iface lo inet loopback + +# the 4 LAN ports +auto vlan0 +iface vlan0 inet static + address 192.168.1.1 + netmask 255.255.255.0 + +# WAN port +auto vlan1 +iface vlan1 inet dhcp + +# wireless interface +auto eth1 +iface eth1 inet static + wireless_mode master + wireless_essid wrt + address 10.0.0.1 + netmask 255.255.255.0 diff --git a/meta/recipes-core/netbase/netbase-4.44/xxs1500/interfaces b/meta/recipes-core/netbase/netbase-4.44/xxs1500/interfaces new file mode 100644 index 0000000000..23ccccd2dd --- /dev/null +++ b/meta/recipes-core/netbase/netbase-4.44/xxs1500/interfaces @@ -0,0 +1,15 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Ethernet +auto eth0 eth1 +iface eth0 inet static + address 192.168.127.1 + netmask 255.255.255.0 + +iface eth1 inet static + address 192.168.128.1 + netmask 255.255.255.0 diff --git a/meta/recipes-core/netbase/netbase_4.43.bb b/meta/recipes-core/netbase/netbase_4.43.bb deleted file mode 100644 index 198a8d7a79..0000000000 --- a/meta/recipes-core/netbase/netbase_4.43.bb +++ /dev/null @@ -1,61 +0,0 @@ -SUMMARY = "Basic TCP/IP networking support" -DESCRIPTION = "This package provides the necessary infrastructure for basic TCP/IP based networking" -HOMEPAGE = "http://packages.debian.org/netbase" -SECTION = "base" -LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://debian/copyright;md5=3dd6192d306f582dee7687da3d8748ab" -PR = "r0" - -inherit update-rc.d - -INITSCRIPT_NAME = "networking" -INITSCRIPT_PARAMS = "start 40 S . stop 40 0 6 1 ." -# On MNCI etc, start very late so that our own apps come up faster -INITSCRIPT_PARAMS_openmn = "start 85 1 2 3 4 5 . stop 85 0 6 1 ." -# On SlugOS (NSLU2) delay the stop until after network apps have exited -# Do not stop in single user - there's no way to sulogin! -INITSCRIPT_PARAMS_slugos = "start 42 S 0 6 ." - -SRC_URI = "${DEBIAN_MIRROR}/main/n/netbase/netbase_${PV}.tar.gz \ - file://init \ - file://hosts \ - file://interfaces \ - file://nfsroot" - -do_install () { - install -d ${D}${sysconfdir}/init.d \ - ${D}${sbindir} \ - ${D}${mandir}/man8 \ - ${D}${sysconfdir}/network/if-pre-up.d \ - ${D}${sysconfdir}/network/if-up.d \ - ${D}${sysconfdir}/network/if-down.d \ - ${D}${sysconfdir}/network/if-post-down.d - install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking - install -m 0644 ${WORKDIR}/hosts ${D}${sysconfdir}/hosts - install -m 0644 etc-rpc ${D}${sysconfdir}/rpc - install -m 0644 etc-protocols ${D}${sysconfdir}/protocols - install -m 0644 etc-services ${D}${sysconfdir}/services - install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces - install -m 0755 ${WORKDIR}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d - - # Disable network manager on machines that commonly do NFS booting - case "${MACHINE}" in - "omap-3430sdp" | "omap-3430ldp" | "omap-2430sdp" | "qemuarm" | "qemux86" | "qemux86-64" ) - touch ${D}${sysconfdir}/network/nm-disabled-eth0 - ;; - *) - ;; - esac -} - -CONFFILES_${PN} = "${sysconfdir}/hosts ${sysconfdir}/network/interfaces" - -PACKAGE_ARCH_omap-3430sdp = "${MACHINE_ARCH}" -PACKAGE_ARCH_omap-3430ldp = "${MACHINE_ARCH}" -PACKAGE_ARCH_omap-2430sdp = "${MACHINE_ARCH}" -PACKAGE_ARCH_qemuarm = "${MACHINE_ARCH}" -PACKAGE_ARCH_qemux86 = "${MACHINE_ARCH}" -PACKAGE_ARCH_qemux86-64 = "${MACHINE_ARCH}" - -SRC_URI[md5sum] = "875d6db52cc8cef565a77ef898ed47cf" -SRC_URI[sha256sum] = "5a6da788356776330b77eda97157285e1c426c2d3bd9136407373965365e9dbf" diff --git a/meta/recipes-core/netbase/netbase_4.44.bb b/meta/recipes-core/netbase/netbase_4.44.bb new file mode 100644 index 0000000000..dbb7e83d20 --- /dev/null +++ b/meta/recipes-core/netbase/netbase_4.44.bb @@ -0,0 +1,61 @@ +SUMMARY = "Basic TCP/IP networking support" +DESCRIPTION = "This package provides the necessary infrastructure for basic TCP/IP based networking" +HOMEPAGE = "http://packages.debian.org/netbase" +SECTION = "base" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://debian/copyright;md5=3dd6192d306f582dee7687da3d8748ab" +PR = "r0" + +inherit update-rc.d + +INITSCRIPT_NAME = "networking" +INITSCRIPT_PARAMS = "start 40 S . stop 40 0 6 1 ." +# On MNCI etc, start very late so that our own apps come up faster +INITSCRIPT_PARAMS_openmn = "start 85 1 2 3 4 5 . stop 85 0 6 1 ." +# On SlugOS (NSLU2) delay the stop until after network apps have exited +# Do not stop in single user - there's no way to sulogin! +INITSCRIPT_PARAMS_slugos = "start 42 S 0 6 ." + +SRC_URI = "${DEBIAN_MIRROR}/main/n/netbase/netbase_${PV}.tar.gz \ + file://init \ + file://hosts \ + file://interfaces \ + file://nfsroot" + +do_install () { + install -d ${D}${sysconfdir}/init.d \ + ${D}${sbindir} \ + ${D}${mandir}/man8 \ + ${D}${sysconfdir}/network/if-pre-up.d \ + ${D}${sysconfdir}/network/if-up.d \ + ${D}${sysconfdir}/network/if-down.d \ + ${D}${sysconfdir}/network/if-post-down.d + install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking + install -m 0644 ${WORKDIR}/hosts ${D}${sysconfdir}/hosts + install -m 0644 etc-rpc ${D}${sysconfdir}/rpc + install -m 0644 etc-protocols ${D}${sysconfdir}/protocols + install -m 0644 etc-services ${D}${sysconfdir}/services + install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces + install -m 0755 ${WORKDIR}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d + + # Disable network manager on machines that commonly do NFS booting + case "${MACHINE}" in + "omap-3430sdp" | "omap-3430ldp" | "omap-2430sdp" | "qemuarm" | "qemux86" | "qemux86-64" ) + touch ${D}${sysconfdir}/network/nm-disabled-eth0 + ;; + *) + ;; + esac +} + +CONFFILES_${PN} = "${sysconfdir}/hosts ${sysconfdir}/network/interfaces" + +PACKAGE_ARCH_omap-3430sdp = "${MACHINE_ARCH}" +PACKAGE_ARCH_omap-3430ldp = "${MACHINE_ARCH}" +PACKAGE_ARCH_omap-2430sdp = "${MACHINE_ARCH}" +PACKAGE_ARCH_qemuarm = "${MACHINE_ARCH}" +PACKAGE_ARCH_qemux86 = "${MACHINE_ARCH}" +PACKAGE_ARCH_qemux86-64 = "${MACHINE_ARCH}" + +SRC_URI[md5sum] = "a8d0bfed8a67273a276fc792524bc103" +SRC_URI[sha256sum] = "eb2d4db2e3ec20eeea1e22962bce46f9651bf63e8add2ba6d4e996f0befb2823" -- cgit v1.2.3