? indent.patch Index: hotplug =================================================================== RCS file: /cvsroot/linux-hotplug/admin/etc/rc.d/init.d/hotplug,v retrieving revision 1.2 diff -u -3 -p -r1.2 hotplug --- hotplug 23 Feb 2001 22:05:59 -0000 1.2 +++ hotplug 31 May 2002 10:04:19 -0000 @@ -13,29 +13,32 @@ # source function library if [ -f /etc/init.d/functions ]; then - . /etc/init.d/functions + . /etc/init.d/functions elif [ -f /etc/rc.d/init.d/functions ]; then - . /etc/rc.d/init.d/functions + . /etc/rc.d/init.d/functions fi case "$1" in start|restart|status) - for RC in /etc/hotplug/*.rc - do - $RC $1 + for RC in /etc/hotplug/*.rc; do + if [ -x $RC ]; then + $RC $1 + fi done touch /var/lock/subsys/hotplug ;; stop) - for RC in /etc/hotplug/*.rc - do - $RC stop - done - rm -f /var/lock/subsys/hotplug - ;; + for RC in /etc/hotplug/*.rc; do + if [ -x $RC ]; then + $RC stop + fi + done + rm -f /var/lock/subsys/hotplug + ;; *) echo $"Usage: $0 {start|stop|restart|status}" exit 1 ;; esac +