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