- only update node package repository if running on boot server
[myplc.git] / plc.d / bootcd
index 0a3c0a8..87aa0e2 100755 (executable)
@@ -7,17 +7,21 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: bootcd,v 1.3 2006/06/23 20:29:22 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
+
+# Be verbose
+set -x
 
 case "$1" in
     start)
        if [ "$PLC_BOOT_ENABLED" != "1" -a \
             "$PLC_WWW_ENABLED" != "1" ] ; then
-           return 0
+           exit 0
        fi
 
        MESSAGE=$"Rebuilding Boot CD"