aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc
diff options
context:
space:
mode:
authorJeff Johnson <jbj@redhat.com>1998-09-16 17:21:43 +0000
committerJeff Johnson <jbj@redhat.com>1998-09-16 17:21:43 +0000
commit50bd268897361f636ac23af5b05a62f3b06a8bcb (patch)
tree801b1b43b706b8011b147b2de12f96f9921b9883 /rc.d/rc
parentdb3b330c20cc619da3532aa389b3320a9aed20ad (diff)
downloadinitscripts-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-xrc.d/rc8
1 files changed, 8 insertions, 0 deletions
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 ] || \