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
28 dialog $"Rebuilding Boot CD"
30 # Customize the Boot CD : run build.sh on all available bootcd's
32 # xxx nodefamily xxx - might make sense to detect sequel from older installs
33 for bootcd in /usr/share/bootcd-* ; do
34 name=$(basename $bootcd)
35 nodefamily=$(echo $name | sed -e s,bootcd-,,)
36 download=/var/www/html/download-${nodefamily}
37 [ -d ${download} ] || mkdir -p ${download}
40 action $"Rebuilding BootCD $name" ${bootcd}/build.sh ${PLC_BUILD_ALL_BOOTCDS:+-a}
46 # just issue a warning about legacy locations
47 for legacy in /usr/share/bootcd /var/www/html/download ; do
48 [ -e $legacy ] && echo "WARNING: found legacy location $legacy -- ignored"