diff options
-rwxr-xr-x | rc.d/rc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 ] || \ |