X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Finit;h=d59ed452f30c86e7a930bb21ea954f888d3b74c6;hb=b9f1a7fdf6528f3af7ed94af70cdd2567351ca2d;hp=a24fe9f2e64b50bea3cd2bc61f81595515e564e1;hpb=e10059ad3f5f97ae43d46eb5ef6386e3f561f14f;p=live-boot-grml.git diff --git a/debian/init b/debian/init index a24fe9f..d59ed45 100644 --- a/debian/init +++ b/debian/init @@ -68,7 +68,12 @@ do_stop () return 0 fi - for path in $(which halt) $(which reboot) /etc/rc?.d /etc/default; do + prompt=1 + if grep -qs noprompt /proc/cmdline; then + prompt= + fi + + for path in $(which halt) $(which reboot) /etc/rc?.d /etc/default $(which stty); do cache_path "${path}" done @@ -84,6 +89,8 @@ do_stop () if [ -x /usr/bin/eject ] then eject -p -m /live/image >/dev/null 2>&1 + + [ "$prompt" ] || return 0 fi stty sane < /dev/console