summaryrefslogtreecommitdiffstats
path: root/initscripts.spec
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-08-31 18:28:24 +0000
committerBill Nottingham <notting@redhat.com>2004-08-31 18:28:24 +0000
commit4916ec9c0fa6d48c8e4f56479963b34660c4e9d8 (patch)
tree992cc72ea1d6b5855cd3ff8aa9307c85935e1781 /initscripts.spec
parent32e892107940cff15dc893d92892f47ae7ccc202 (diff)
downloadinitscripts-4916ec9c0fa6d48c8e4f56479963b34660c4e9d8.tar.gz
initscripts-4916ec9c0fa6d48c8e4f56479963b34660c4e9d8.tar.xz
initscripts-4916ec9c0fa6d48c8e4f56479963b34660c4e9d8.zip
remove triggers for ancient releases, bulletproof remaining ones (#131356)
Diffstat (limited to 'initscripts.spec')
-rw-r--r--initscripts.spec49
1 files changed, 2 insertions, 47 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 48ec9082..05566180 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -103,56 +103,11 @@ fi
%triggerun -- initscripts <= 7.59
/sbin/chkconfig --del random
+exit 0
%triggerun -- initscripts < 7.62
/sbin/chkconfig --del rawdevices
-
-%triggerpostun -- initscripts <= 5.04
-/sbin/chkconfig --add netfs
-/sbin/chkconfig --add network
-
-%triggerpostun -- initscripts <= 4.72
-
-. /etc/sysconfig/init
-. /etc/sysconfig/network
-
-# These are the non-default settings. By putting them at the end
-# of the /etc/sysctl.conf file, it will override the default
-# settings earlier in the file.
-
-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
-fi
-
-newnet=`mktemp /etc/sysconfig/network.XXXXXX`
-if [ -n "$newnet" ]; then
- sed "s|FORWARD_IPV4.*|# FORWARD_IPV4 removed; see /etc/sysctl.conf|g" \
- /etc/sysconfig/network > $newnet
- sed "s|DEFRAG_IPV4.*|# DEFRAG_IPV4 removed; obsolete in 2.4. kernel|g" \
- $newnet > /etc/sysconfig/network
- rm -f $newnet
-fi
-
-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
-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.stop-a = 1" >> /etc/sysctl.conf
- fi
-fi
-
-newinit=`mktemp /etc/sysconfig/init.XXXXXX`
-if [ -n "$newinit" ]; then
- 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
- rm -f $newinit
-fi
+exit 0
%clean
rm -rf $RPM_BUILD_ROOT