PERFORCE change 80946 for review
soc-andrew
soc-andrew at FreeBSD.org
Mon Jul 25 07:19:38 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=80946
Change 80946 by soc-andrew at soc-andrew_serv on 2005/07/25 07:19:25
Reboot when asked to by the backend
Affected files ...
.. //depot/projects/soc2005/bsdinstaller/src/release/bsdinstaller/bsdinstaller_shell.sh#2 edit
Differences ...
==== //depot/projects/soc2005/bsdinstaller/src/release/bsdinstaller/bsdinstaller_shell.sh#2 (text+ko) ====
@@ -2,12 +2,24 @@
TTY=`tty`
+if [ -f /.do_reboot ]
+then
+ # The reboot should have begun after 60s
+ sleep 60
+fi
+
if [ ${TTY} = "/dev/ttyv0" ]
then
/usr/sbin/bsd_installer_ncurses
elif [ ${TTY} = "/dev/ttyv1" ]
then
/usr/sbin/bsd_installer_be
+ if [ $? -eq 5 ]
+ then
+# The backend returned the reboot value
+ shutdown -r now
+ touch /.do_reboot
+ fi
else
echo "Error: bsdinstaller can only login on ttyv0 or ttyv1"
fi
More information about the p4-projects
mailing list