From 0779cd89d08cf56bbb51d8176505b4b1fc839782 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Mon, 17 Apr 2006 17:04:37 +0000 Subject: [PATCH] only parse executable scripts in /etc/plc.d --- guest.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guest.init b/guest.init index f931519..619db33 100755 --- a/guest.init +++ b/guest.init @@ -6,7 +6,7 @@ # # description: Manages all PLC services on this machine # -# $Id: guest.init,v 1.14 2006/04/10 18:18:14 mlhuang Exp $ +# $Id: guest.init,v 1.15 2006/04/10 21:09:02 mlhuang Exp $ # # Source function library and configuration @@ -22,7 +22,7 @@ verbose=0 # everything just works. steps=($( for step in /etc/plc.d/* ; do - if [ -x $step ] ; then + if [ -f $step -a -x $step ] ; then priority=$(sed -ne 's/# priority: \(.*\)/\1/p' $step) echo $priority $(basename $step) fi -- 2.47.0