git://git.onelab.eu
/
bootcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8693849
)
readd ability for bootscripts to cancel the boot process
author
Aaron Klingaman
<alk@cs.princeton.edu>
Mon, 6 Dec 2004 19:45:36 +0000
(19:45 +0000)
committer
Aaron Klingaman
<alk@cs.princeton.edu>
Mon, 6 Dec 2004 19:45:36 +0000
(19:45 +0000)
conf_files/pl_boot
patch
|
blob
|
history
diff --git
a/conf_files/pl_boot
b/conf_files/pl_boot
index
960995e
..
4bbf1a8
100644
(file)
--- a/
conf_files/pl_boot
+++ b/
conf_files/pl_boot
@@
-5,6
+5,9
@@
GNUPGHOME=/root
export GNUPGHOME
/usr/bin/gpg --yes 2>/dev/null </dev/null
export GNUPGHOME
/usr/bin/gpg --yes 2>/dev/null </dev/null
+# if this file is present, cancel the boot (exit this script)
+CANCEL_BOOT_FLAG=/tmp/CANCEL_BOOT
+
# where all the configuration files for contacting
# the boot server are stored
BOOT_DIR=/usr/boot/
# where all the configuration files for contacting
# the boot server are stored
BOOT_DIR=/usr/boot/
@@
-64,6
+67,11
@@
GPG_CMD="/usr/bin/gpg \
first=1
while true; do
first=1
while true; do
+ if [[ -f $CANCEL_BOOT_FLAG ]]; then
+ echo "pl_boot: got request to cancel boot, exiting"
+ exit 0
+ fi
+
if [[ $first -eq 0 ]]; then
echo "pl_boot: fetching new script in 30 seconds"
/bin/sleep 30
if [[ $first -eq 0 ]]; then
echo "pl_boot: fetching new script in 30 seconds"
/bin/sleep 30
@@
-105,4
+113,4
@@
while true; do
echo "pl_boot: downloaded script has returned"
done
echo "pl_boot: downloaded script has returned"
done
-echo "pl_boot: automatic boot process canceled"
+echo "pl_boot: automatic boot process canceled
by user
"