netbase: added BUG support
authorMarcin Juszkiewicz <marcin@buglabs.net>
Thu, 23 Apr 2009 13:08:23 +0000 (15:08 +0200)
committerMarcin Juszkiewicz <marcin@buglabs.net>
Thu, 23 Apr 2009 18:11:59 +0000 (20:11 +0200)
We use other network range for usb0 then OE default and this will not
change soon. Also support for onboard Ethernet, Wifi module and
USB-Ethernet adapters is present.

recipes/netbase/netbase/bug/hosts [new file with mode: 0644]
recipes/netbase/netbase/bug/interfaces [new file with mode: 0644]
recipes/netbase/netbase_4.21.bb

diff --git a/recipes/netbase/netbase/bug/hosts b/recipes/netbase/netbase/bug/hosts
new file mode 100644 (file)
index 0000000..789d660
--- /dev/null
@@ -0,0 +1,3 @@
+127.0.0.1      localhost.localdomain           localhost       bug
+10.10.10.1     bughost
+
diff --git a/recipes/netbase/netbase/bug/interfaces b/recipes/netbase/netbase/bug/interfaces
new file mode 100644 (file)
index 0000000..c410484
--- /dev/null
@@ -0,0 +1,39 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Ethernet/RNDIS gadget (g_ether)
+# usbnet and static hwaddr for mac users
+auto usb0
+iface usb0 inet static
+       hwaddress ether A2:80:F4:8A:3C:91
+       address 10.10.10.10 
+       netmask 255.255.255.0
+       gateway 10.10.10.1 
+
+# Wireless interfaces
+iface wlan0 inet dhcp
+       wireless_mode managed
+       wireless_essid any
+       wpa-driver wext
+       wpa-conf /etc/wpa_supplicant.conf
+
+# Wired or wireless interfaces
+# Handylink Ethernet or Wifi bugmodule or USB Ethernet
+auto eth0
+iface eth0 inet dhcp
+       wireless_mode managed
+       wireless_essid any
+       wpa-driver wext
+       wpa-conf /etc/wpa_supplicant.conf
+#
+# Wired or wireless interfaces
+# Wifi bugmodule or USB Ethernet
+auto eth1
+iface eth1 inet dhcp
+       wireless_mode managed
+       wireless_essid any
+       wpa-driver wext
+       wpa-conf /etc/wpa_supplicant.conf
index 04533d8..4dfc182 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "This package provides the necessary \
 infrastructure for basic TCP/IP based networking."
 SECTION = "base"
 LICENSE = "GPL"
-PR = "r34"
+PR = "r35"
 
 inherit update-rc.d