r913 - in trunk/oe/packages: . netbase netbase/netbase netbase/netbase/a780 netbase/netbase/colinux netbase/netbase/e680 netbase/netbase/epia netbase/netbase/fic-gta01 netbase/netbase/mtx-1 netbase/netbase/mtx-2 netbase/netbase/openmn netbase/netbase/tosa netbase/netbase/wrt54 netbase/netbase/xxs1500
Thu Feb 8 15:19:09 CET 2007
Author:
Date: 2007-02-08 15:19:09 +0100 (Thu, 08 Feb 2007)
New Revision: 913
Added:
trunk/oe/packages/netbase/
trunk/oe/packages/netbase/netbase/
trunk/oe/packages/netbase/netbase/a780/
trunk/oe/packages/netbase/netbase/a780/interfaces
trunk/oe/packages/netbase/netbase/busybox.patch
trunk/oe/packages/netbase/netbase/colinux/
trunk/oe/packages/netbase/netbase/colinux/interfaces
trunk/oe/packages/netbase/netbase/e680/
trunk/oe/packages/netbase/netbase/e680/interfaces
trunk/oe/packages/netbase/netbase/epia/
trunk/oe/packages/netbase/netbase/epia/interfaces
trunk/oe/packages/netbase/netbase/fic-gta01/
trunk/oe/packages/netbase/netbase/fic-gta01/interfaces
trunk/oe/packages/netbase/netbase/hosts
trunk/oe/packages/netbase/netbase/init
trunk/oe/packages/netbase/netbase/interfaces
trunk/oe/packages/netbase/netbase/mtx-1/
trunk/oe/packages/netbase/netbase/mtx-1/interfaces
trunk/oe/packages/netbase/netbase/mtx-2/
trunk/oe/packages/netbase/netbase/mtx-2/interfaces
trunk/oe/packages/netbase/netbase/openmn/
trunk/oe/packages/netbase/netbase/openmn/hosts
trunk/oe/packages/netbase/netbase/openmn/interfaces
trunk/oe/packages/netbase/netbase/options
trunk/oe/packages/netbase/netbase/tosa/
trunk/oe/packages/netbase/netbase/tosa/interfaces
trunk/oe/packages/netbase/netbase/wrt54/
trunk/oe/packages/netbase/netbase/wrt54/interfaces
trunk/oe/packages/netbase/netbase/xxs1500/
trunk/oe/packages/netbase/netbase/xxs1500/interfaces
trunk/oe/packages/netbase/netbase_4.21.bb
Log:
oe: override netbase to add our version of interfaces file
Added: trunk/oe/packages/netbase/netbase/a780/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/a780/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/a780/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -0,0 +1,44 @@
+# /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
+
+auto usb0
+# Ethernet/RNDIS gadget (g_ether)
+# ... or on host side, usbnet and random hwaddr
+iface usb0 inet static
+ address 192.168.1.2
+ netmask 255.255.255.0
+ network 192.168.1.0
+ gateway 192.168.1.10
+
+
+# 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
+
Added: trunk/oe/packages/netbase/netbase/busybox.patch
===================================================================
--- trunk/oe/packages/netbase/netbase/busybox.patch 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/busybox.patch 2007-02-08 14:19:09 UTC (rev 913)
@@ -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
Added: trunk/oe/packages/netbase/netbase/colinux/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/colinux/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/colinux/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -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
Added: trunk/oe/packages/netbase/netbase/e680/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/e680/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/e680/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -0,0 +1,44 @@
+# /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
+
+auto usb0
+# Ethernet/RNDIS gadget (g_ether)
+# ... or on host side, usbnet and random hwaddr
+iface usb0 inet static
+ address 192.168.1.2
+ netmask 255.255.255.0
+ network 192.168.1.0
+ gateway 192.168.1.10
+
+
+# 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
+
Added: trunk/oe/packages/netbase/netbase/epia/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/epia/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/epia/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -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
+
Added: trunk/oe/packages/netbase/netbase/fic-gta01/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/fic-gta01/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/fic-gta01/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -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
+
Added: trunk/oe/packages/netbase/netbase/hosts
===================================================================
--- trunk/oe/packages/netbase/netbase/hosts 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/hosts 2007-02-08 14:19:09 UTC (rev 913)
@@ -0,0 +1,2 @@
+127.0.0.1 localhost.localdomain localhost
+
Added: trunk/oe/packages/netbase/netbase/init
===================================================================
--- trunk/oe/packages/netbase/netbase/init 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/init 2007-02-08 14:19:09 UTC (rev 913)
@@ -0,0 +1,102 @@
+#!/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)
+ doopt spoofprotect yes
+ doopt syncookies no
+ doopt ip_forward no
+
+ 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
+
Added: trunk/oe/packages/netbase/netbase/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -0,0 +1,43 @@
+# /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
+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
+
Added: trunk/oe/packages/netbase/netbase/mtx-1/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/mtx-1/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/mtx-1/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -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
Added: trunk/oe/packages/netbase/netbase/mtx-2/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/mtx-2/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/mtx-2/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -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
Added: trunk/oe/packages/netbase/netbase/openmn/hosts
===================================================================
--- trunk/oe/packages/netbase/netbase/openmn/hosts 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/openmn/hosts 2007-02-08 14:19:09 UTC (rev 913)
@@ -0,0 +1,2 @@
+127.0.0.1 localhost.localdomain localhost
+192.168.233.1 www.mn-solutions.de
Added: trunk/oe/packages/netbase/netbase/openmn/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/openmn/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/openmn/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -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
Added: trunk/oe/packages/netbase/netbase/options
===================================================================
--- trunk/oe/packages/netbase/netbase/options 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/options 2007-02-08 14:19:09 UTC (rev 913)
@@ -0,0 +1,3 @@
+ip_forward=no
+spoofprotect=yes
+syncookies=no
Added: trunk/oe/packages/netbase/netbase/tosa/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/tosa/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/tosa/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -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
Added: trunk/oe/packages/netbase/netbase/wrt54/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/wrt54/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/wrt54/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -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
Added: trunk/oe/packages/netbase/netbase/xxs1500/interfaces
===================================================================
--- trunk/oe/packages/netbase/netbase/xxs1500/interfaces 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase/xxs1500/interfaces 2007-02-08 14:19:09 UTC (rev 913)
@@ -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
Added: trunk/oe/packages/netbase/netbase_4.21.bb
===================================================================
--- trunk/oe/packages/netbase/netbase_4.21.bb 2007-02-08 14:03:21 UTC (rev 912)
+++ trunk/oe/packages/netbase/netbase_4.21.bb 2007-02-08 14:19:09 UTC (rev 913)
@@ -0,0 +1,42 @@
+DESCRIPTION = "This package provides the necessary \
+infrastructure for basic TCP/IP based networking."
+SECTION = "base"
+LICENSE = "GPL"
+PR = "r13"
+
+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://options \
+ file://init \
+ file://hosts \
+ file://interfaces"
+
+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 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"
More information about the commitlog
mailing list