diff options
author | Bill Nottingham <notting@redhat.com> | 2000-03-07 16:37:27 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-03-07 16:37:27 +0000 |
commit | 0399f4af7c12be0f1095b1fb1fd44f75f6bf4174 (patch) | |
tree | 155081bed6906b667542a4ade6e69fd8d24b4198 | |
parent | 0e53f1f50fc978198fd5c82ea05e3e6213bfaa75 (diff) | |
download | initscripts-0399f4af7c12be0f1095b1fb1fd44f75f6bf4174.tar initscripts-0399f4af7c12be0f1095b1fb1fd44f75f6bf4174.tar.gz initscripts-0399f4af7c12be0f1095b1fb1fd44f75f6bf4174.tar.bz2 initscripts-0399f4af7c12be0f1095b1fb1fd44f75f6bf4174.tar.xz initscripts-0399f4af7c12be0f1095b1fb1fd44f75f6bf4174.zip |
*** empty log message ***
-rw-r--r-- | initscripts.spec | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/initscripts.spec b/initscripts.spec index 23b4a22d..476ca579 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -139,16 +139,18 @@ fi if [ -n "$FORWARD_IPV4" -a "$FORWARD_IPV4" != "no" -a "$FORWARD_IPV4" != "false" ]; then echo "# added by initscripts install on `date`" >> /etc/sysctl.conf echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf + echo >> /etc/syctl.conf fi if [ "$DEFRAG_IPV4" = "yes" -o "$DEFRAG_IPV4" = "true" ]; then echo "# added by initscripts install on `date`" >> /etc/sysctl.conf echo "net.ipv4.ip_always_defrag = 1" >> /etc/sysctl.conf + echo >> /etc/syctl.conf fi newnet=`mktemp /etc/sysconfig/network.XXXXXX` -sed "s|FORWARD_IPV4|# FORWARD_IPV4 removed; see /etc/sysctl.conf|g" +sed "s|FORWARD_IPV4|# FORWARD_IPV4 removed; see /etc/sysctl.conf|g" \ /etc/sysconfig/network > $newnet -sed "s|DEFRAG_IPV4|# DEFRAG_IPV4 removed; see /etc/sysctl.conf|g" +sed "s|DEFRAG_IPV4|# DEFRAG_IPV4 removed; see /etc/sysctl.conf|g" \ $newnet > /etc/sysconfig/network rm -f $newnet @@ -156,18 +158,20 @@ rm -f $newnet if [ -n "$MAGIC_SYSRQ" -a "$MAGIC_SYSRQ" != "no" ]; then echo "# added by initscripts install on `date`" >> /etc/sysctl.conf echo "kernel.sysrq = 1" >> /etc/sysctl.conf + echo >> /etc/syctl.conf fi if uname -m | grep -q sparc ; then if [ -n "$STOP_A" -a "$STOP_A" != "no" ]; then echo "# added by initscripts install on `date`" >> /etc/sysctl.conf - echo "kernel. = 1" >> /etc/sysctl.conf + echo "kernel.stop-a = 1" >> /etc/sysctl.conf + echo >> /etc/syctl.conf fi fi newinit=`mktemp /etc/syconfig/init.XXXXXX` -sed "s|MAGIC_SYSRQ|# MAGIC_SYSRQ removed; see /etc/sysctl.conf|g" +sed "s|MAGIC_SYSRQ|# MAGIC_SYSRQ removed; see /etc/sysctl.conf|g" \ /etc/sysconfig/init > $newinit -sed "s|STOP_A|# STOP_A removed; see /etc/sysctl.conf|g" +sed "s|STOP_A|# STOP_A removed; see /etc/sysctl.conf|g" \ $newinit > /etc/sysconfig/init |