From 4916ec9c0fa6d48c8e4f56479963b34660c4e9d8 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 31 Aug 2004 18:28:24 +0000 Subject: remove triggers for ancient releases, bulletproof remaining ones (#131356) --- initscripts.spec | 49 ++----------------------------------------------- 1 file 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 -- cgit v1.2.1