#!/bin/bash # # priority: 1000 # # Rebuild the Boot CD # # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # # $Id$ # # 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 exit 0 fi MESSAGE=$"Rebuilding Boot CD" dialog "$MESSAGE" # Customize the Boot CD pushd /var/www/html/download /usr/share/bootcd/build.sh ${PLC_BUILD_ALL_BOOTCDS:+-a} check popd result "$MESSAGE" ;; esac exit $ERRORS