- fix exit/return mixup
[myplc.git] / plc.d / bootcd
index ca5a65e..87aa0e2 100755 (executable)
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: bootcd,v 1.2 2006/04/25 21:18:19 mlhuang Exp $
+# $Id: bootcd,v 1.3 2006/06/23 20:29:22 mlhuang Exp $
 #
 
 # Source function library and configuration
@@ -21,7 +21,7 @@ case "$1" in
     start)
        if [ "$PLC_BOOT_ENABLED" != "1" -a \
             "$PLC_WWW_ENABLED" != "1" ] ; then
-           return 0
+           exit 0
        fi
 
        MESSAGE=$"Rebuilding Boot CD"