[PC-BSD Commits] r14050 - pcbsd/current/src-sh/pc-updatemanager/scripts

svn at pcbsd.org svn at pcbsd.org
Mon Nov 28 12:07:50 PST 2011


Author: kris
Date: 2011-11-28 12:07:49 -0800 (Mon, 28 Nov 2011)
New Revision: 14050

Modified:
   pcbsd/current/src-sh/pc-updatemanager/scripts/mu-rc
Log:

Add option to skip a system update at bootup, user will be prompted again at next boot




Modified: pcbsd/current/src-sh/pc-updatemanager/scripts/mu-rc
===================================================================
--- pcbsd/current/src-sh/pc-updatemanager/scripts/mu-rc	2011-11-28 19:04:35 UTC (rev 14049)
+++ pcbsd/current/src-sh/pc-updatemanager/scripts/mu-rc	2011-11-28 20:07:49 UTC (rev 14050)
@@ -111,6 +111,21 @@
 # Set the terminal type
 TERM="cons25" ; export TERM
 
+# Prompt user to skip upgrade if they dont have the time to do it
+clear
+echo "# PC-BSD System Upgrade"
+echo "#############################################################################################"
+echo "A system update to PC-BSD $UPVER is ready to be installed. This may take 30 minutes or more."
+echo "If you wish to postpone the update, type 'skip' and press enter. You will be prompted again"
+echo "during the next system boot. The update will automatically begin in 20 seconds."
+echo "> "
+read -t 20 ans
+if [ "$ans" = "skip" -o "$ans" = "SKIP" ] ; then
+  sh /etc/rc.backup
+  exit 0
+fi
+
+
 # Run the update script now
 sh ${SDIR}/doupdate.sh
 



More information about the Commits mailing list