From 57a2d9c32c007161bdf3dbfc32c67dee98eac974 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 8 Jan 2011 01:29:00 +0100 Subject: [PATCH 1/1] Automatically reboot after 10 seconds of inactivity after succesfully finishing automatic installation. Thanks for the suggestion, Christian. --- grml-debootstrap | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/grml-debootstrap b/grml-debootstrap index 055843a..b3fc9da 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -1005,8 +1005,12 @@ fi # end dialog of autoinstallation {{{ if [ -n "$AUTOINSTALL" ] ; then - dialog --title "$PN" --msgbox \ - "Finished execution of ${PN}. Enjoy your Debian system." 0 0 + if dialog --title "${PN}" --pause "Finished execution of ${PN}. +Automatically rebooting in 10 seconds. + +Choose Cancel to skip rebooting." 10 60 10 ; then + noeject noprompt reboot + fi else einfo "Finished execution of ${PN}. Enjoy your Debian system." ; eend 0 fi -- 2.1.4