I also added skipping of rpmnew files. I understand that you are not likely to ever generate those files for init scripts, but it's doesn't cost much to check anyway Since the patch isn't too long, I pasted it here: --- rc.redhat Thu Feb 4 11:11:00 1999 +++ rc Thu Apr 15 00:11:33 1999 @@ -42,8 +42,9 @@ [ ! -f $i ] && continue # Don't run [KS]??foo.{rpmsave,rpmorig} scripts - [ "${1%.rpmsave}" != "${1}" ] && continue - [ "${1%.rpmorig}" != "${1}" ] && continue + [ "${i%.rpmsave}" != "${i}" ] && continue + [ "${i%.rpmorig}" != "${i}" ] && continue + [ "${i%.rpmnew}" != "${i}" ] && continue # Check if the subsystem is already up. subsys=${i#/etc/rc.d/rc$runlevel.d/K??} @@ -64,8 +65,9 @@ [ ! -f $i ] && continue # Don't run [KS]??foo.{rpmsave,rpmorig} scripts - [ "${1%.rpmsave}" != "${1}" ] && continue - [ "${1%.rpmorig}" != "${1}" ] && continue + [ "${i%.rpmsave}" != "${i}" ] && continue + [ "${i%.rpmorig}" != "${i}" ] && continue + [ "${i%.rpmnew}" != "${i}" ] && continue # Check if the subsystem is already up. subsys=${i#/etc/rc.d/rc$runlevel.d/S??}
fixed in initscripts-4.13