Date: Mon, 25 Jul 2005 07:19:36 GMT From: soc-andrew <soc-andrew@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 80946 for review Message-ID: <200507250719.j6P7Jaj6087796@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=80946 Change 80946 by soc-andrew@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507250719.j6P7Jaj6087796>