netbase: automatically bring up usb0 on BeagleBoard xM
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 20 Apr 2011 10:45:25 +0000 (11:45 +0100)
committerKoen Kooi <koen@dominion.thruhere.net>
Sun, 15 May 2011 13:59:17 +0000 (15:59 +0200)
Avoids manual configuration of the BeagleBoard xM's ethernet port
(which shows up as usb0).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
recipes-core/netbase/netbase-4.45/beagleboard/interfaces [new file with mode: 0644]
recipes-core/netbase/netbase_4.45.bbappend [new file with mode: 0644]

diff --git a/recipes-core/netbase/netbase-4.45/beagleboard/interfaces b/recipes-core/netbase/netbase-4.45/beagleboard/interfaces
new file mode 100644 (file)
index 0000000..b6935c1
--- /dev/null
@@ -0,0 +1,27 @@
+# /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
+auto eth0
+iface eth0 inet dhcp
+iface eth1 inet dhcp
+
+# Ethernet/RNDIS gadget (g_ether) or LAN9514 on BeagleBoard xM
+auto usb0
+iface usb0 inet dhcp
+
+# Bluetooth networking
+iface bnep0 inet dhcp
+
diff --git a/recipes-core/netbase/netbase_4.45.bbappend b/recipes-core/netbase/netbase_4.45.bbappend
new file mode 100644 (file)
index 0000000..4b8d0e6
--- /dev/null
@@ -0,0 +1,3 @@
+THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
+FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
+