[oe-commits] Denis 'GNUtoo' Carikli : netbase: add support for nexusone
git version control
git at git.openembedded.org
Tue Jun 7 21:29:49 UTC 2011
Module: openembedded.git
Branch: org.openembedded.dev
Commit: a83c1cf658f4cbb05480887fdae70e088e7e3ec2
URL: http://git.openembedded.org/?p=openembedded.git&a=commit;h=a83c1cf658f4cbb05480887fdae70e088e7e3ec2
Author: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Date: Tue Jun 7 23:21:00 2011 +0200
netbase: add support for nexusone
Without that patch usb0 doesn't come up at first boot,
and so we can't ssh into the phone
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
---
recipes/netbase/netbase/nexusone/interfaces | 17 +++++++++++++++++
recipes/netbase/netbase_4.21.bb | 2 +-
2 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/recipes/netbase/netbase/nexusone/interfaces b/recipes/netbase/netbase/nexusone/interfaces
new file mode 100644
index 0000000..fdbc8fc
--- /dev/null
+++ b/recipes/netbase/netbase/nexusone/interfaces
@@ -0,0 +1,17 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# 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
+ up route add default gw 192.168.0.200 metric 8
+ up echo nameserver 208.67.222.222 > /etc/resolv.conf
+ up echo nameserver 208.67.220.220 >> /etc/resolv.conf
+ down route del default gw 192.168.0.200 metric 8
diff --git a/recipes/netbase/netbase_4.21.bb b/recipes/netbase/netbase_4.21.bb
index edf4a95..b870995 100644
--- a/recipes/netbase/netbase_4.21.bb
+++ b/recipes/netbase/netbase_4.21.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "This package provides the necessary \
infrastructure for basic TCP/IP based networking."
SECTION = "base"
LICENSE = "GPLv2"
-PR = "r51"
+PR = "r52"
inherit update-rc.d
More information about the Openembedded-commits
mailing list