X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.init;h=fc93b7e46569ab015e081d2ccc35fa872d4a0f70;hb=b145ac1d57ff66a34d00382b52f319b2c040bdaa;hp=0617516bc759fe18d0310e5a84add64df922a335;hpb=5efb05264954a0e2c2bde976a27abe7ca66685d4;p=myplc.git diff --git a/plc.init b/plc.init index 0617516..fc93b7e 100755 --- a/plc.init +++ b/plc.init @@ -35,10 +35,11 @@ verbose=0 # but that's maybe a good thing, that all is done at first start ### +# do not consider files that contain '.', '~' or 'functions' in the name steps=($( for step in /etc/plc.d/* ; do stepname=$(basename $step) - plainstepname=$(echo $stepname | sed -e 's,\.,,' -e 's,~,,') + plainstepname=$(echo $stepname | sed -e 's,\.,,' -e 's,~,,' -e 's,functions,,' ) if [ -f $step -a -x $step -a "$stepname" = "$plainstepname" ] ; then priority=$(sed -ne 's/# priority: \(.*\)/\1/p' $step) echo $priority $stepname