From 50bd268897361f636ac23af5b05a62f3b06a8bcb Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 16 Sep 1998 17:21:43 +0000 Subject: Don't run [KS]??foo.{rpmsave,rpmorig} scripts. --- rc.d/rc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rc.d/rc') diff --git a/rc.d/rc b/rc.d/rc index 4b3dd644..aacd5f3f 100755 --- a/rc.d/rc +++ b/rc.d/rc @@ -32,6 +32,10 @@ if [ -d /etc/rc.d/rc$runlevel.d ]; then # Check if the script is there. [ ! -f $i ] && continue + # Don't run [KS]??foo.{rpmsave,rpmorig} scripts + [ "${1%.rpmsave}" != "${1}" ] && continue + [ "${1%.rpmorig}" != "${1}" ] && continue + # Check if the subsystem is already up. subsys=${i#/etc/rc.d/rc$runlevel.d/K??} [ ! -f /var/lock/subsys/$subsys ] && \ @@ -46,6 +50,10 @@ if [ -d /etc/rc.d/rc$runlevel.d ]; then # Check if the script is there. [ ! -f $i ] && continue + # Don't run [KS]??foo.{rpmsave,rpmorig} scripts + [ "${1%.rpmsave}" != "${1}" ] && continue + [ "${1%.rpmorig}" != "${1}" ] && continue + # Check if the subsystem is already up. subsys=${i#/etc/rc.d/rc$runlevel.d/S??} [ -f /var/lock/subsys/$subsys ] || \ -- cgit v1.2.1