first draft of a deployment-friendly bootmanager
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 13 Jan 2010 16:52:45 +0000 (16:52 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 13 Jan 2010 16:52:45 +0000 (16:52 +0000)
  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 [deleted file]

diff --git a/plc.d/bootmanager b/plc.d/bootmanager
deleted file mode 100755 (executable)
index bdc05bc..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/bash
-#
-# priority: 1100
-#
-# Rebuild the Boot Manager
-#
-# Mark Huang <mlhuang@cs.princeton.edu>
-# 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