diff options
Diffstat (limited to 'initscripts.spec')
-rw-r--r-- | initscripts.spec | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/initscripts.spec b/initscripts.spec index 5dbb8018..bfe967e4 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -144,6 +144,15 @@ 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 fi + +newnet=`mktemp /etc/sysconfig/network.XXXXXX` +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" + $newnet > /etc/sysconfig/network +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 @@ -155,6 +164,13 @@ if uname -m | grep -q sparc ; then fi fi +newinit=`mktemp /etc/syconfig/init.XXXXXX` +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" + $newinit > /etc/sysconfig/init + + %clean rm -rf $RPM_BUILD_ROOT @@ -228,6 +244,9 @@ rm -rf $RPM_BUILD_ROOT %ghost %attr(0664,root,utmp) /var/run/utmp %changelog +* Tue Mar 7 2000 Bill Nottingham <notting@redhat.com> +- rerun sysctl on network start (for restarts) + * Mon Feb 28 2000 Bill Nottingham <notting@redhat.com> - don't read commented raid devices |