From 02d17611c90fb984000e35900c0f5788c352fafc Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 30 Oct 2008 16:16:14 +0800 Subject: fastboot: netbase: Prefer /etc/sysctl.conf over /etc/network/options. --- packages/netbase/netbase/init | 9 ++++++--- packages/netbase/netbase/options | 1 + packages/netbase/netbase_4.21.bb | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/netbase/netbase/init b/packages/netbase/netbase/init index 8d6b9aa426..acc26cba61 100644 --- a/packages/netbase/netbase/init +++ b/packages/netbase/netbase/init @@ -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 diff --git a/packages/netbase/netbase/options b/packages/netbase/netbase/options index 2000189d19..a1f9d05f75 100644 --- a/packages/netbase/netbase/options +++ b/packages/netbase/netbase/options @@ -1,3 +1,4 @@ +# used only when /etc/sysctl.conf does not exist ip_forward=no spoofprotect=yes syncookies=no diff --git a/packages/netbase/netbase_4.21.bb b/packages/netbase/netbase_4.21.bb index a0baa81658..9d5f2c6826 100644 --- a/packages/netbase/netbase_4.21.bb +++ b/packages/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 = "GPL" -PR = "r29" +PR = "r30" inherit update-rc.d -- cgit v1.2.3