[Fai-commit] r3944 - trunk/lib

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Wed Sep 13 13:52:11 UTC 2006


Author: lange
Date: 2006-09-13 13:52:10 +0000 (Wed, 13 Sep 2006)
New Revision: 3944

Modified:
   trunk/lib/subroutines
Log:
set default value for flag_reboot is undefined,
sleep 10 seconds in case of no error and flag_reboot=1


Modified: trunk/lib/subroutines
===================================================================
--- trunk/lib/subroutines	2006-09-13 13:11:06 UTC (rev 3943)
+++ trunk/lib/subroutines	2006-09-13 13:52:10 UTC (rev 3944)
@@ -392,8 +392,10 @@
     [ $do_init_tasks -eq 0 ] && exit 0
     wait_for_jobs
     echo "Press <RETURN> to reboot or ctrl-c to execute a shell"
+    [ -z "flag_$reboot" ] && : ${flag_reboot:=0}
+    [ -s $LOGDIR.error.log -a "$flag_reboot" -gt "0" ] && sleep 10
     # reboot without prompting if FAI_FLAG reboot is set
-    [ -z $flag_reboot ] && read
+    [ "$flag_reboot" -lt "1" ] && read
     echo "Rebooting $HOSTNAME now"
     sndmon REBOOT
     cd /




More information about the Fai-commit mailing list