[oe-commits] org.oe.dreambox busbox, opendreambox: add default_gw handling
tmbinc commit
oe at amethyst.openembedded.net
Tue Jul 15 08:41:13 UTC 2008
busbox,opendreambox: add default_gw handling
Author: tmbinc at openembedded.org
Branch: org.openembedded.dreambox
Revision: f5db6a6b29f31866a864553dc00c02276713a85f
ViewMTN: http://monotone.openembedded.org/revision/info/f5db6a6b29f31866a864553dc00c02276713a85f
Files:
1
packages/busybox/busybox-1.01/opendreambox/default_gw.patch
packages/busybox/busybox_1.01.bb
Diffs:
#
# mt diff -r9606f7d56b9a099573315b383b213caefd836da5 -rf5db6a6b29f31866a864553dc00c02276713a85f
#
#
#
# add_file "packages/busybox/busybox-1.01/opendreambox/default_gw.patch"
# content [e81515946bc05f35569150297f7cc659dbf54e54]
#
# patch "packages/busybox/busybox_1.01.bb"
# from [dbb48d4893367d86e0f3db393be2f146b4e37846]
# to [73fd6e41142eb8de4a3139b69fe4a21224e5ab57]
#
============================================================
--- packages/busybox/busybox-1.01/opendreambox/default_gw.patch e81515946bc05f35569150297f7cc659dbf54e54
+++ packages/busybox/busybox-1.01/opendreambox/default_gw.patch e81515946bc05f35569150297f7cc659dbf54e54
@@ -0,0 +1,23 @@
+diff -Naur busybox-1.01-org/examples/udhcp/simple.script busybox-1.01/examples/udhcp/simple.script
+--- busybox-1.01-org/examples/udhcp/simple.script 2008-07-14 17:49:12.000000000 +0200
++++ busybox-1.01/examples/udhcp/simple.script 2008-07-14 15:19:00.000000000 +0200
+@@ -21,9 +21,16 @@
+ :
+ done
+
+- for i in $router ; do
+- route add default gw $i dev $interface
+- done
++ if [ -e /etc/default_gw ]; then
++ default_gw=`cat /etc/default_gw`
++ else
++ default_gw=$interface
++ fi
++ if [ "$interface" = "$default_gw" ]; then
++ for i in $router ; do
++ route add default gw $i dev $interface
++ done
++ fi
+ fi
+
+ echo -n > $RESOLV_CONF
============================================================
--- packages/busybox/busybox_1.01.bb dbb48d4893367d86e0f3db393be2f146b4e37846
+++ packages/busybox/busybox_1.01.bb 73fd6e41142eb8de4a3139b69fe4a21224e5ab57
@@ -10,7 +10,7 @@ PRIORITY = "required"
LICENSE = "GPL"
SECTION = "base"
PRIORITY = "required"
-PR = "r14"
+PR = "r15"
SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
file://udhcppidfile.patch;patch=1 \
@@ -44,6 +44,7 @@ SRC_URI_append_slugos += " file://sysctl
file://mount.busybox \
file://umount.busybox"
SRC_URI_append_slugos += " file://sysctl.conf "
+SRC_URI_append_opendreambox += " file://default_gw.patch;patch=1;pnum=1"
S = "${WORKDIR}/busybox-${PV}"
More information about the Openembedded-commits
mailing list