fastboot: netbase: Prefer /etc/sysctl.conf over /etc/network/options.
authorChia-I Wu <olv@openmoko.com>
Thu, 30 Oct 2008 08:16:14 +0000 (16:16 +0800)
committerJohn Lee <john_lee@openmoko.org>
Mon, 12 Jan 2009 06:29:43 +0000 (14:29 +0800)
packages/netbase/netbase/init
packages/netbase/netbase/options
packages/netbase/netbase_4.21.bb

index 8d6b9aa..acc26cb 100644 (file)
@@ -62,9 +62,12 @@ doopt () {
 
 case "$1" in
     start)
-       doopt spoofprotect yes
-        doopt syncookies no
-        doopt ip_forward no
+       # /etc/sysctl.conf is preferred
+       if [ ! -f /etc/sysctl.conf ]; then
+         doopt spoofprotect yes
+         doopt syncookies no
+         doopt ip_forward no
+       fi
 
         echo -n "Configuring network interfaces... "
         ifup -a
index 2000189..a1f9d05 100644 (file)
@@ -1,3 +1,4 @@
+# used only when /etc/sysctl.conf does not exist
 ip_forward=no
 spoofprotect=yes
 syncookies=no
index a0baa81..9d5f2c6 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "This package provides the necessary \
 infrastructure for basic TCP/IP based networking."
 SECTION = "base"
 LICENSE = "GPL"
-PR = "r29"
+PR = "r30"
 
 inherit update-rc.d