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