]> git.openpandora.org Git - openembedded.git/commitdiff
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 8d6b9aa426035862f83d725c7754d350b8ab6b26..acc26cba614899c7e40839a8346df3ef60ae23e3 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 2000189d1929efe12978c1061fd9a46ac918958f..a1f9d05f75aa550b3510706f943c5aa544783e43 100644 (file)
@@ -1,3 +1,4 @@
+# used only when /etc/sysctl.conf does not exist
 ip_forward=no
 spoofprotect=yes
 syncookies=no
index a0baa816584c6155d06ee6a0b6f23606c53aaa05..9d5f2c68268e65ec788f827af4143707c320dcd6 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