aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/netbase
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/netbase
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
downloadopenembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.tar.gz
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/netbase')
-rw-r--r--recipes/netbase/netbase/busybox.patch13
-rw-r--r--recipes/netbase/netbase/colinux/interfaces8
-rw-r--r--recipes/netbase/netbase/epia/interfaces10
-rw-r--r--recipes/netbase/netbase/eten-m800/interfaces28
-rw-r--r--recipes/netbase/netbase/foonas/interfaces13
-rw-r--r--recipes/netbase/netbase/hosts2
-rw-r--r--recipes/netbase/netbase/if-down.d/.mtn2git_empty0
-rw-r--r--recipes/netbase/netbase/if-post-down.d/.mtn2git_empty0
-rw-r--r--recipes/netbase/netbase/if-pre-up.d/.mtn2git_empty0
-rw-r--r--recipes/netbase/netbase/if-up.d/.mtn2git_empty0
-rw-r--r--recipes/netbase/netbase/init105
-rw-r--r--recipes/netbase/netbase/interfaces83
-rw-r--r--recipes/netbase/netbase/mtx-1/interfaces29
-rw-r--r--recipes/netbase/netbase/mtx-2/interfaces29
-rw-r--r--recipes/netbase/netbase/mx31moboard/interfaces14
-rw-r--r--recipes/netbase/netbase/om-3d7k/interfaces21
-rw-r--r--recipes/netbase/netbase/om-gta01/interfaces29
-rw-r--r--recipes/netbase/netbase/om-gta02/interfaces30
-rw-r--r--recipes/netbase/netbase/openmn/hosts2
-rw-r--r--recipes/netbase/netbase/openmn/interfaces10
-rw-r--r--recipes/netbase/netbase/oplinux-uclibc/interfaces10
-rw-r--r--recipes/netbase/netbase/oplinux-uclibc/options3
-rw-r--r--recipes/netbase/netbase/oplinux/interfaces10
-rw-r--r--recipes/netbase/netbase/oplinux/options3
-rw-r--r--recipes/netbase/netbase/options4
-rw-r--r--recipes/netbase/netbase/palmt650/interfaces22
-rw-r--r--recipes/netbase/netbase/ronetix-pm9261/interfaces72
-rw-r--r--recipes/netbase/netbase/ronetix-pm9263/interfaces72
-rw-r--r--recipes/netbase/netbase/slugos/if-pre-up.d/test-nfsroot10
-rw-r--r--recipes/netbase/netbase/slugos/if-pre-up.d/udhcpc-fix12
-rw-r--r--recipes/netbase/netbase/tosa/interfaces24
-rw-r--r--recipes/netbase/netbase/wrt54/interfaces23
-rw-r--r--recipes/netbase/netbase/xxs1500/interfaces15
-rw-r--r--recipes/netbase/netbase_4.21.bb61
34 files changed, 767 insertions, 0 deletions
diff --git a/recipes/netbase/netbase/busybox.patch b/recipes/netbase/netbase/busybox.patch
new file mode 100644
index 0000000000..845bb421ed
--- /dev/null
+++ b/recipes/netbase/netbase/busybox.patch
@@ -0,0 +1,13 @@
+--- netbase-3.18.orig/debian/networking.init.d~busybox
++++ netbase-3.18.orig/debian/networking.init.d
+@@ -15,8 +15,8 @@
+ # spoof protection on all current and future interfaces.
+
+ if [ -e /proc/sys/net/ipv4/conf/all/rp_filter ]; then
+- for f in /proc/sys/net/ipv4/conf/*/rp_filter; do
+- echo 1 > $f
++ for f in /proc/sys/net/ipv4/conf/*; do
++ echo 1 > $f/rp_filter
+ done
+ return 0
+ else
diff --git a/recipes/netbase/netbase/colinux/interfaces b/recipes/netbase/netbase/colinux/interfaces
new file mode 100644
index 0000000000..0e495e164e
--- /dev/null
+++ b/recipes/netbase/netbase/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/recipes/netbase/netbase/epia/interfaces b/recipes/netbase/netbase/epia/interfaces
new file mode 100644
index 0000000000..673618f636
--- /dev/null
+++ b/recipes/netbase/netbase/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/recipes/netbase/netbase/eten-m800/interfaces b/recipes/netbase/netbase/eten-m800/interfaces
new file mode 100644
index 0000000000..090c18aa07
--- /dev/null
+++ b/recipes/netbase/netbase/eten-m800/interfaces
@@ -0,0 +1,28 @@
+# /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
+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
+auto usb0
+iface usb0 inet static
+ address 192.168.0.202
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.200
+
+# Bluetooth networking
+iface bnep0 inet dhcp
+
diff --git a/recipes/netbase/netbase/foonas/interfaces b/recipes/netbase/netbase/foonas/interfaces
new file mode 100644
index 0000000000..314715bba7
--- /dev/null
+++ b/recipes/netbase/netbase/foonas/interfaces
@@ -0,0 +1,13 @@
+# /etc/network/interfaces
+# configuration file for ifup(8), ifdown(8)
+#
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+#
+# The interface used by default during boot
+auto eth0
+iface eth0 inet dhcp
+ address 192.168.1.16
+
diff --git a/recipes/netbase/netbase/hosts b/recipes/netbase/netbase/hosts
new file mode 100644
index 0000000000..2f332451b5
--- /dev/null
+++ b/recipes/netbase/netbase/hosts
@@ -0,0 +1,2 @@
+127.0.0.1 localhost.localdomain localhost
+
diff --git a/recipes/netbase/netbase/if-down.d/.mtn2git_empty b/recipes/netbase/netbase/if-down.d/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/recipes/netbase/netbase/if-down.d/.mtn2git_empty
diff --git a/recipes/netbase/netbase/if-post-down.d/.mtn2git_empty b/recipes/netbase/netbase/if-post-down.d/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/recipes/netbase/netbase/if-post-down.d/.mtn2git_empty
diff --git a/recipes/netbase/netbase/if-pre-up.d/.mtn2git_empty b/recipes/netbase/netbase/if-pre-up.d/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/recipes/netbase/netbase/if-pre-up.d/.mtn2git_empty
diff --git a/recipes/netbase/netbase/if-up.d/.mtn2git_empty b/recipes/netbase/netbase/if-up.d/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/recipes/netbase/netbase/if-up.d/.mtn2git_empty
diff --git a/recipes/netbase/netbase/init b/recipes/netbase/netbase/init
new file mode 100644
index 0000000000..acc26cba61
--- /dev/null
+++ b/recipes/netbase/netbase/init
@@ -0,0 +1,105 @@
+#!/bin/sh
+#
+# manage network interfaces and configure some networking options
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+if ! [ -x /sbin/ifup ]; then
+ exit 0
+fi
+
+spoofprotect_rp_filter () {
+ # This is the best method: turn on Source Address Verification and get
+ # spoof protection on all current and future interfaces.
+
+ if [ -e /proc/sys/net/ipv4/conf/all/rp_filter ]; then
+ for f in /proc/sys/net/ipv4/conf/*; do
+ [ -e $f/rp_filter ] && echo 1 > $f/rp_filter
+ done
+ return 0
+ else
+ return 1
+ fi
+}
+
+spoofprotect () {
+ echo -n "Setting up IP spoofing protection: "
+ if spoofprotect_rp_filter; then
+ echo "rp_filter."
+ else
+ echo "FAILED."
+ fi
+}
+
+ip_forward () {
+ if [ -e /proc/sys/net/ipv4/ip_forward ]; then
+ echo -n "Enabling packet forwarding... "
+ echo 1 > /proc/sys/net/ipv4/ip_forward
+ echo "done."
+ fi
+}
+
+syncookies () {
+ if [ -e /proc/sys/net/ipv4/tcp_syncookies ]; then
+ echo -n "Enabling TCP/IP SYN cookies... "
+ echo 1 > /proc/sys/net/ipv4/tcp_syncookies
+ echo "done."
+ fi
+}
+
+doopt () {
+ optname=$1
+ default=$2
+ opt=`grep "^$optname=" /etc/network/options`
+ if [ -z "$opt" ]; then
+ opt="$optname=$default"
+ fi
+ optval=${opt#$optname=}
+ if [ "$optval" = "yes" ]; then
+ eval $optname
+ fi
+}
+
+case "$1" in
+ start)
+ # /etc/sysctl.conf is preferred
+ if [ ! -f /etc/sysctl.conf ]; then
+ doopt spoofprotect yes
+ doopt syncookies no
+ doopt ip_forward no
+ fi
+
+ 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/recipes/netbase/netbase/interfaces b/recipes/netbase/netbase/interfaces
new file mode 100644
index 0000000000..c615642e35
--- /dev/null
+++ b/recipes/netbase/netbase/interfaces
@@ -0,0 +1,83 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+
+# Wireless interfaces
+#
+# Example of an unencrypted (no WEP or WPA) wireless connection
+# that connects to any available access point:
+#
+iface wlan0 inet dhcp
+ wireless_mode managed
+ wireless_essid any
+#
+#
+# Same as above but locked to a specific access point:
+#
+#iface wlan0 inet dhcp
+# wireless_mode managed
+# wireless-essid some-essid
+#
+# A WEP encrypted connection locked to a specific access point:
+#
+#iface wlan0 inet dhcp
+# wireless-essid some-essid
+# wireless-key s:My-PlainText-Password
+# wireless-mode managed
+#
+# A WPA1 or WPA2 encrypted connection locked to a specific access point.
+# This is the best option for non-roaming, single-network usage.
+# Note that your card may require a firmware update to use WPA.
+# Some distributions install a temporary volatile firmware update on ifup.
+#
+#iface wlan0 inet dhcp
+# wpa-essid some-essid
+# wpa-psk My-PlainText-Password
+#
+# A WPA1 or WPA2 encrypted connection using an external configuration file
+# for wpa-supplicant. This is the way to go if you need to configure multiple
+# networks with different keys and / or WPA settings and roaming support.
+#
+# iface wlan0 inet dhcp
+# wpa-conf /etc/wpa_supplicant.conf
+# wpa-driver hostap
+
+
+
+iface atml0 inet dhcp
+
+# Wired or wireless interfaces
+auto eth0
+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.0.202
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.200
+
+
+# Zaurus 2.4 Lineo net_fd; obsolete
+iface usbd0 inet static
+ address 192.168.129.201
+ netmask 255.255.255.0
+ network 192.168.129.0
+ gateway 192.168.129.200
+
+# iPAQ 2.4 mach-sa1100/usb-eth
+# (192.168.0.202 is the iPAQ's IP, 192.168.0.200 is the host's IP)
+iface usbf inet static
+ address 192.168.0.202
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.200
+
+# Bluetooth networking
+iface bnep0 inet dhcp
+
diff --git a/recipes/netbase/netbase/mtx-1/interfaces b/recipes/netbase/netbase/mtx-1/interfaces
new file mode 100644
index 0000000000..a7c6da5752
--- /dev/null
+++ b/recipes/netbase/netbase/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/recipes/netbase/netbase/mtx-2/interfaces b/recipes/netbase/netbase/mtx-2/interfaces
new file mode 100644
index 0000000000..a7c6da5752
--- /dev/null
+++ b/recipes/netbase/netbase/mtx-2/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/recipes/netbase/netbase/mx31moboard/interfaces b/recipes/netbase/netbase/mx31moboard/interfaces
new file mode 100644
index 0000000000..17d2b151bc
--- /dev/null
+++ b/recipes/netbase/netbase/mx31moboard/interfaces
@@ -0,0 +1,14 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Ethernet/RNDIS gadget (g_ether)
+auto usb0
+iface usb0 inet static
+ address 192.168.0.202
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.200
+
diff --git a/recipes/netbase/netbase/om-3d7k/interfaces b/recipes/netbase/netbase/om-3d7k/interfaces
new file mode 100644
index 0000000000..dda0850d71
--- /dev/null
+++ b/recipes/netbase/netbase/om-3d7k/interfaces
@@ -0,0 +1,21 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# No wireless interface
+
+# Ethernet/RNDIS gadget (g_ether)
+# ... or on host side, usbnet and random hwaddr
+allow-hotplug usb0
+iface usb0 inet static
+ address 192.168.0.202
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.200
+ up echo nameserver 208.67.222.222 >> /etc/resolv.conf
+ up echo nameserver 208.67.220.220 >> /etc/resolv.conf
+
+# Bluetooth networking
+iface bnep0 inet dhcp
diff --git a/recipes/netbase/netbase/om-gta01/interfaces b/recipes/netbase/netbase/om-gta01/interfaces
new file mode 100644
index 0000000000..56c485ef75
--- /dev/null
+++ b/recipes/netbase/netbase/om-gta01/interfaces
@@ -0,0 +1,29 @@
+# /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
+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
+allow-hotplug usb0
+iface usb0 inet static
+ address 192.168.0.202
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.200
+ up echo nameserver 208.67.222.222 >> /etc/resolv.conf
+ up echo nameserver 208.67.220.220 >> /etc/resolv.conf
+
+# Bluetooth networking
+iface bnep0 inet dhcp
diff --git a/recipes/netbase/netbase/om-gta02/interfaces b/recipes/netbase/netbase/om-gta02/interfaces
new file mode 100644
index 0000000000..ceedfc59c2
--- /dev/null
+++ b/recipes/netbase/netbase/om-gta02/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
+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
+allow-hotplug usb0
+iface usb0 inet static
+ address 192.168.0.202
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.200
+ up echo nameserver 208.67.222.222 >> /etc/resolv.conf
+ up echo nameserver 208.67.220.220 >> /etc/resolv.conf
+
+# Bluetooth networking
+iface bnep0 inet dhcp
+
diff --git a/recipes/netbase/netbase/openmn/hosts b/recipes/netbase/netbase/openmn/hosts
new file mode 100644
index 0000000000..0205b98fc2
--- /dev/null
+++ b/recipes/netbase/netbase/openmn/hosts
@@ -0,0 +1,2 @@
+127.0.0.1 localhost.localdomain localhost
+192.168.233.1 www.mn-solutions.de
diff --git a/recipes/netbase/netbase/openmn/interfaces b/recipes/netbase/netbase/openmn/interfaces
new file mode 100644
index 0000000000..9ebe9b8ff1
--- /dev/null
+++ b/recipes/netbase/netbase/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/recipes/netbase/netbase/oplinux-uclibc/interfaces b/recipes/netbase/netbase/oplinux-uclibc/interfaces
new file mode 100644
index 0000000000..673618f636
--- /dev/null
+++ b/recipes/netbase/netbase/oplinux-uclibc/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/recipes/netbase/netbase/oplinux-uclibc/options b/recipes/netbase/netbase/oplinux-uclibc/options
new file mode 100644
index 0000000000..14380f4376
--- /dev/null
+++ b/recipes/netbase/netbase/oplinux-uclibc/options
@@ -0,0 +1,3 @@
+ip_forward=yes
+spoofprotect=yes
+syncookies=no
diff --git a/recipes/netbase/netbase/oplinux/interfaces b/recipes/netbase/netbase/oplinux/interfaces
new file mode 100644
index 0000000000..673618f636
--- /dev/null
+++ b/recipes/netbase/netbase/oplinux/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/recipes/netbase/netbase/oplinux/options b/recipes/netbase/netbase/oplinux/options
new file mode 100644
index 0000000000..14380f4376
--- /dev/null
+++ b/recipes/netbase/netbase/oplinux/options
@@ -0,0 +1,3 @@
+ip_forward=yes
+spoofprotect=yes
+syncookies=no
diff --git a/recipes/netbase/netbase/options b/recipes/netbase/netbase/options
new file mode 100644
index 0000000000..a1f9d05f75
--- /dev/null
+++ b/recipes/netbase/netbase/options
@@ -0,0 +1,4 @@
+# used only when /etc/sysctl.conf does not exist
+ip_forward=no
+spoofprotect=yes
+syncookies=no
diff --git a/recipes/netbase/netbase/palmt650/interfaces b/recipes/netbase/netbase/palmt650/interfaces
new file mode 100644
index 0000000000..db4c4ca21f
--- /dev/null
+++ b/recipes/netbase/netbase/palmt650/interfaces
@@ -0,0 +1,22 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Wireless interfaces
+
+# Wired or wireless interfaces
+
+# Ethernet/RNDIS gadget (g_ether)
+# ... or on host side, usbnet and random hwaddr
+auto usb0
+iface usb0 inet static
+ address 192.168.0.202
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.200
+
+# Bluetooth networking
+iface bnep0 inet dhcp
+
diff --git a/recipes/netbase/netbase/ronetix-pm9261/interfaces b/recipes/netbase/netbase/ronetix-pm9261/interfaces
new file mode 100644
index 0000000000..ab20f5b37b
--- /dev/null
+++ b/recipes/netbase/netbase/ronetix-pm9261/interfaces
@@ -0,0 +1,72 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+
+# Wireless interfaces
+#
+# Example of an unencrypted (no WEP or WPA) wireless connection
+# that connects to any available access point:
+#
+iface wlan0 inet dhcp
+ wireless_mode managed
+ wireless_essid any
+#
+#
+# Same as above but locked to a specific access point:
+#
+#iface wlan0 inet dhcp
+# wireless_mode managed
+# wireless-essid some-essid
+#
+# A WEP encrypted connection locked to a specific access point:
+#
+#iface wlan0 inet dhcp
+# wireless-essid some-essid
+# wireless-key s:My-PlainText-Password
+# wireless-mode managed
+#
+# A WPA1 or WPA2 encrypted connection locked to a specific access point.
+# This is the best option for non-roaming, single-network usage.
+# Note that your card may require a firmware update to use WPA.
+# Some distributions install a temporary volatile firmware update on ifup.
+#
+#iface wlan0 inet dhcp
+# wpa-essid some-essid
+# wpa-psk My-PlainText-Password
+#
+# A WPA1 or WPA2 encrypted connection using an external configuration file
+# for wpa-supplicant. This is the way to go if you need to configure multiple
+# networks with different keys and / or WPA settings and roaming support.
+#
+# iface wlan0 inet dhcp
+# wpa-conf /etc/wpa_supplicant.conf
+# wpa-driver hostap
+
+
+
+iface atml0 inet dhcp
+
+# Wired or wireless interfaces
+auto eth0
+iface eth0 inet static
+ address 192.168.0.184
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.1
+
+iface eth1 inet dhcp
+
+# Ethernet/RNDIS gadget (g_ether)
+# ... or on host side, usbnet and random hwaddr
+iface usb0 inet static
+ address 192.168.0.202
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.200
+
+# Bluetooth networking
+iface bnep0 inet dhcp
+
diff --git a/recipes/netbase/netbase/ronetix-pm9263/interfaces b/recipes/netbase/netbase/ronetix-pm9263/interfaces
new file mode 100644
index 0000000000..ab20f5b37b
--- /dev/null
+++ b/recipes/netbase/netbase/ronetix-pm9263/interfaces
@@ -0,0 +1,72 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+
+# Wireless interfaces
+#
+# Example of an unencrypted (no WEP or WPA) wireless connection
+# that connects to any available access point:
+#
+iface wlan0 inet dhcp
+ wireless_mode managed
+ wireless_essid any
+#
+#
+# Same as above but locked to a specific access point:
+#
+#iface wlan0 inet dhcp
+# wireless_mode managed
+# wireless-essid some-essid
+#
+# A WEP encrypted connection locked to a specific access point:
+#
+#iface wlan0 inet dhcp
+# wireless-essid some-essid
+# wireless-key s:My-PlainText-Password
+# wireless-mode managed
+#
+# A WPA1 or WPA2 encrypted connection locked to a specific access point.
+# This is the best option for non-roaming, single-network usage.
+# Note that your card may require a firmware update to use WPA.
+# Some distributions install a temporary volatile firmware update on ifup.
+#
+#iface wlan0 inet dhcp
+# wpa-essid some-essid
+# wpa-psk My-PlainText-Password
+#
+# A WPA1 or WPA2 encrypted connection using an external configuration file
+# for wpa-supplicant. This is the way to go if you need to configure multiple
+# networks with different keys and / or WPA settings and roaming support.
+#
+# iface wlan0 inet dhcp
+# wpa-conf /etc/wpa_supplicant.conf
+# wpa-driver hostap
+
+
+
+iface atml0 inet dhcp
+
+# Wired or wireless interfaces
+auto eth0
+iface eth0 inet static
+ address 192.168.0.184
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.1
+
+iface eth1 inet dhcp
+
+# Ethernet/RNDIS gadget (g_ether)
+# ... or on host side, usbnet and random hwaddr
+iface usb0 inet static
+ address 192.168.0.202
+ netmask 255.255.255.0
+ network 192.168.0.0
+ gateway 192.168.0.200
+
+# Bluetooth networking
+iface bnep0 inet dhcp
+
diff --git a/recipes/netbase/netbase/slugos/if-pre-up.d/test-nfsroot b/recipes/netbase/netbase/slugos/if-pre-up.d/test-nfsroot
new file mode 100644
index 0000000000..bbfd7d9bb3
--- /dev/null
+++ b/recipes/netbase/netbase/slugos/if-pre-up.d/test-nfsroot
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+if [ X"$IFACE" == "Xeth0" ] ; then
+ nfsroot=`grep ' / nfs ' /proc/mounts`
+ if [ -n "$nfsroot" ]; then
+ echo "WARNING: Refusing to ifup eth0 when booted to a nfs-mounted rootfs."
+ exit 1
+ fi
+fi
+exit 0
diff --git a/recipes/netbase/netbase/slugos/if-pre-up.d/udhcpc-fix b/recipes/netbase/netbase/slugos/if-pre-up.d/udhcpc-fix
new file mode 100644
index 0000000000..7d2e9705ea
--- /dev/null
+++ b/recipes/netbase/netbase/slugos/if-pre-up.d/udhcpc-fix
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# This works around a problem where udhcpc times out w/o getting a lease
+# due to slow auto-negotiate.
+
+if test "$IFACE" = "eth0" -a "$METHOD" = "dhcp"
+then
+ echo -n "[sleeping 5s]..."
+ ifconfig eth0 up
+ sleep 5
+fi
+
diff --git a/recipes/netbase/netbase/tosa/interfaces b/recipes/netbase/netbase/tosa/interfaces
new file mode 100644
index 0000000000..0da7168535
--- /dev/null
+++ b/recipes/netbase/netbase/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/recipes/netbase/netbase/wrt54/interfaces b/recipes/netbase/netbase/wrt54/interfaces
new file mode 100644
index 0000000000..8b2852ac51
--- /dev/null
+++ b/recipes/netbase/netbase/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/recipes/netbase/netbase/xxs1500/interfaces b/recipes/netbase/netbase/xxs1500/interfaces
new file mode 100644
index 0000000000..23ccccd2dd
--- /dev/null
+++ b/recipes/netbase/netbase/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/recipes/netbase/netbase_4.21.bb b/recipes/netbase/netbase_4.21.bb
new file mode 100644
index 0000000000..1437094b71
--- /dev/null
+++ b/recipes/netbase/netbase_4.21.bb
@@ -0,0 +1,61 @@
+DESCRIPTION = "This package provides the necessary \
+infrastructure for basic TCP/IP based networking."
+SECTION = "base"
+LICENSE = "GPL"
+PR = "r33"
+
+inherit update-rc.d
+
+SRC_URI_OVERRIDES_PACKAGE_ARCH = "1"
+
+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 = "\
+ http://developer.irexnet.com/pub/iOn/Sources/1.0/Third%20party/all/netbase-${PV}.tar.gz \
+ file://options \
+ file://init \
+ file://hosts \
+ file://interfaces \
+ file://if-pre-up.d \
+ file://if-up.d \
+ file://if-down.d \
+ file://if-post-down.d \
+"
+
+do_install () {
+ install -d ${D}${sysconfdir}/init.d
+ install -d ${D}${sbindir}
+ install -d ${D}${mandir}/man8
+ install -d ${D}${sysconfdir}/network/if-pre-up.d
+ install -d ${D}${sysconfdir}/network/if-up.d
+ install -d ${D}${sysconfdir}/network/if-down.d
+ install -d ${D}${sysconfdir}/network/if-post-down.d
+
+ for dir in if-pre-up.d if-up.d if-down.d if-post-down.d
+ do
+ for script in `ls -1 "${WORKDIR}/${dir}"`
+ do
+ install -m 0755 "${WORKDIR}/${dir}/${script}" "${D}${sysconfdir}/network/${dir}"
+ done
+ done
+
+ install -m 0644 ${WORKDIR}/options ${D}${sysconfdir}/network/options
+ 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 0755 update-inetd ${D}${sbindir}/
+ install -m 0644 update-inetd.8 ${D}${mandir}/man8/
+ install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces
+}
+
+CONFFILES_${PN} = "${sysconfdir}/network/options ${sysconfdir}/hosts \
+ ${sysconfdir}/network/interfaces ${sysconfdir}/rpc \
+ ${sysconfdir}/protocols ${sysconfdir}/services"