summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorT(A)ILS developers <amnesia@boum.org>2010-08-09 20:48:17 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:59:20 +0100
commit274ce8e4e2b902e4e7b4871c284cee0285cf18a6 (patch)
tree5e43e1c450d4dd78f1454acb9200d9cbe9a63b36 /debian
parent7e9d7f6671c23f8bbc87349a56c5f132f01164ad (diff)
downloadlive-boot-274ce8e4e2b902e4e7b4871c284cee0285cf18a6.tar.gz
live-boot-274ce8e4e2b902e4e7b4871c284cee0285cf18a6.zip
Adding noprompt={usb,cd} feature.
Diffstat (limited to 'debian')
-rw-r--r--debian/live-boot.init13
1 files changed, 12 insertions, 1 deletions
diff --git a/debian/live-boot.init b/debian/live-boot.init
index 1a85267..dd338b1 100644
--- a/debian/live-boot.init
+++ b/debian/live-boot.init
@@ -136,7 +136,7 @@ do_stop ()
fi
prompt=1
- if grep -qs noprompt /proc/cmdline
+ if [ ${NOPROMPT} = "Yes" ]
then
prompt=
fi
@@ -170,6 +170,12 @@ do_stop ()
# failes because they actually remember the
# "ejected" state even after reboot
MESSAGE="Please remove the USB flash drive"
+
+ if [ ${NOPROMPT} = "usb" ]
+ then
+ prompt=
+ fi
+
else
# ejecting is a very good idea here
MESSAGE="Please remove the disc, close the the tray (if any)"
@@ -179,6 +185,11 @@ do_stop ()
eject -p -m /live/image >/dev/null 2>&1
fi
+ if [ ${NOPROMPT} = "cd" ]
+ then
+ prompt=
+ fi
+
fi
[ "$prompt" ] || return 0