[oe-commits] Denis 'GNUtoo' Carikli : netbase: add support for htcdream

git version control git at git.openembedded.org
Thu Jun 10 21:34:21 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 5a67c1d1daeb9016270cd514bb3eab179cd298b8
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5a67c1d1daeb9016270cd514bb3eab179cd298b8

Author: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Date:   Mon Jun  7 20:39:41 2010 +0200

netbase: add support for htcdream

If we don't add a custom file containing auto usb0,
usb0 is not configured at boot and we can't ssh into the phone

Acked-by: Khem Raj <raj.khem at gmail.com>
Acked-by: Michael 'Mickey' Lauer <mlauer at vanille-media.de>

---

 recipes/netbase/netbase/htcdream/interfaces |   17 +++++++++++++++++
 recipes/netbase/netbase_4.21.bb             |    2 +-
 2 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/recipes/netbase/netbase/htcdream/interfaces b/recipes/netbase/netbase/htcdream/interfaces
new file mode 100644
index 0000000..a75f259
--- /dev/null
+++ b/recipes/netbase/netbase/htcdream/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 4e1d39f..baec44b 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 = "r41"
+PR = "r42"
 
 inherit update-rc.d
 





More information about the Openembedded-commits mailing list