chiark / gitweb /
Don't try to run bogus startup scripts.
authormdw <mdw>
Sat, 17 May 2003 11:13:52 +0000 (11:13 +0000)
committermdw <mdw>
Sat, 17 May 2003 11:13:52 +0000 (11:13 +0000)
tripe-init.in

index 59d93d4..68f47ba 100755 (executable)
@@ -43,10 +43,14 @@ case "$1" in
     fi
     echo -n " tripe"
     for i in $TRIPEDIR/peers/*; do
-      case $i in *~|\#*) continue;; esac
+      [ -x $i ] || continue
       name=`basename $i`
-      $i
-      echo -n " $name"
+      case $name in *~|\#*) continue;; esac
+      if $i; then 
+       echo -n " $name"
+      else
+        echo -n " ($name failed)"
+      fi
     done
     echo " done"
     ;;