diff options
author | Jeff Johnson <jbj@redhat.com> | 1998-09-16 17:21:43 +0000 |
---|---|---|
committer | Jeff Johnson <jbj@redhat.com> | 1998-09-16 17:21:43 +0000 |
commit | 50bd268897361f636ac23af5b05a62f3b06a8bcb (patch) | |
tree | 801b1b43b706b8011b147b2de12f96f9921b9883 /rc.d/rc | |
parent | db3b330c20cc619da3532aa389b3320a9aed20ad (diff) | |
download | initscripts-50bd268897361f636ac23af5b05a62f3b06a8bcb.tar initscripts-50bd268897361f636ac23af5b05a62f3b06a8bcb.tar.gz initscripts-50bd268897361f636ac23af5b05a62f3b06a8bcb.tar.bz2 initscripts-50bd268897361f636ac23af5b05a62f3b06a8bcb.tar.xz initscripts-50bd268897361f636ac23af5b05a62f3b06a8bcb.zip |
Don't run [KS]??foo.{rpmsave,rpmorig} scripts.
Diffstat (limited to 'rc.d/rc')
-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 ] || \ |