aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc
diff options
context:
space:
mode:
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 ] || \