Mercurial > hg > aboriginal
changeset 980:d424fd68f991
Idea from Johnicholas Hines: add a three second "read" before running hdc's init so the user can press a key to get a command shell instead.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 16 Feb 2010 08:26:35 -0600 |
parents | 88b354c0eee1 |
children | c6b3d648ead6 |
files | sources/native/sbin/init.sh |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sources/native/sbin/init.sh Tue Feb 16 06:57:14 2010 -0600 +++ b/sources/native/sbin/init.sh Tue Feb 16 08:26:35 2010 -0600 @@ -62,7 +62,17 @@ echo Type exit when done. HANDOFF=/bin/ash - [ -e /mnt/init ] && HANDOFF=/mnt/init + if [ -e /mnt/init ] + then + X=xx + echo "Press any key for command line..." + read -t 3 -n 1 X + if [ "$X" == xx ] + then + echo "\nRunning automated build." + HANDOFF=/mnt/init + fi + fi exec /bin/oneit -c /dev/"$CONSOLE" "$HANDOFF" # If we're not PID 1, it's probably a chroot.