From b333a24520030b28cf133ffa441dee8cfcb27926 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 16 May 2004 19:08:17 +0000 Subject: [PATCH] Clifford Wolf: Stone install mod: ask user if we should reboot now. (It seams like reading the text and typing 'shutdown -r now' is a big challange for some people when installing... ;-) [2004050417200410502] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2925 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/sysfiles/stone_mod_install.sh | 23 +++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/package/base/sysfiles/stone_mod_install.sh b/package/base/sysfiles/stone_mod_install.sh index dd0766cb3..58b779ed2 100644 --- a/package/base/sysfiles/stone_mod_install.sh +++ b/package/base/sysfiles/stone_mod_install.sh @@ -222,15 +222,20 @@ EOT sed 's,/mnt/target/\?,/,' > /mnt/target/etc/mtab cd /mnt/target ; chroot . ./tmp/stone_postinst.sh rm -fv ./tmp/stone_postinst.sh - echo - echo "You might want to umount all filesystems now and reboot" - echo "the system now using the commands:" - echo - echo " umount -arv" - echo " reboot -f" - echo - echo "Or by executing 'shutdown -r' which will run the above commands." - echo + if gui_yesno "Do you want to un-mount the filesystems and reboot now?" + then + shutdown -r now + else + echo + echo "You might want to umount all filesystems now and reboot" + echo "the system now using the commands:" + echo + echo " umount -arv" + echo " reboot -f" + echo + echo "Or by executing 'shutdown -r now' which will run the above commands." + echo + fi fi }