From: Thierry Parmentelat Date: Wed, 13 Jan 2010 16:52:45 +0000 (+0000) Subject: first draft of a deployment-friendly bootmanager X-Git-Tag: MyPLC-5.0-1^2~24 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=df23d1d299155154813ad5d59c380956ded76af8;p=myplc.git first draft of a deployment-friendly bootmanager attempt to make some sense of the various locations used move the nodeconfig script, as well as the plc.d script, into bootmanager, where it belongs --- diff --git a/plc.d/bootmanager b/plc.d/bootmanager deleted file mode 100755 index bdc05bc..0000000 --- a/plc.d/bootmanager +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -# -# priority: 1100 -# -# Rebuild the Boot Manager -# -# 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 Manager" - dialog "$MESSAGE" - - # Customize the Boot Manager - pushd /var/www/html/boot - /usr/share/bootmanager/build.sh - check - - dirlist="" - for i in `ls`; do - if [ -d $i ]; then - dirlist="$dirlist $i" - fi - done - for dir in $dirlist ; do - echo -n " $dir" - /usr/share/bootmanager/build.sh $dir - check - done - popd - - result "$MESSAGE" - ;; -esac - -exit $ERRORS