5 # Rebuild the Boot Manager
7 # Mark Huang <mlhuang@cs.princeton.edu>
8 # Copyright (C) 2006 The Trustees of Princeton University
11 # Source function library and configuration
12 . /etc/plc.d/functions
13 . /etc/planetlab/plc_config
20 if [ "$PLC_BOOT_ENABLED" != "1" -a \
21 "$PLC_WWW_ENABLED" != "1" ] ; then
26 for topdir in /usr/share/bootmanager/* ; do
27 [ -d "$topdir" ] || continue
28 deployment=$(basename $topdir)
29 if [ "$deployment" = "regular" ] ; then
30 action $"Rebuilding Boot Manager" $topdir/build.sh regular
32 elif [ -x $topdir/build.sh ] ; then
33 action $"Rebuilding Boot Manager for deployment $deployment" $topdir/build.sh $deployment
35 elif [ "$deployment" == "source" ] ; then
36 action $"Ignoring obsolete dir, please cleanup $topdir"
38 action $"WARNING: missing build.sh script in $topdir"