From df23d1d299155154813ad5d59c380956ded76af8 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 13 Jan 2010 16:52:45 +0000 Subject: [PATCH] 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 --- plc.d/bootmanager | 52 ----------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100755 plc.d/bootmanager 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 -- 2.43.0