Mercurial > hg > aboriginal
comparison sources/native/sbin/init.sh @ 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 | c1ab614da7b9 |
children | 2932487b59fa |
comparison
equal
deleted
inserted
replaced
979:88b354c0eee1 | 980:d424fd68f991 |
---|---|
60 echo "Distcc acceleration enabled." | 60 echo "Distcc acceleration enabled." |
61 fi | 61 fi |
62 echo Type exit when done. | 62 echo Type exit when done. |
63 | 63 |
64 HANDOFF=/bin/ash | 64 HANDOFF=/bin/ash |
65 [ -e /mnt/init ] && HANDOFF=/mnt/init | 65 if [ -e /mnt/init ] |
66 then | |
67 X=xx | |
68 echo "Press any key for command line..." | |
69 read -t 3 -n 1 X | |
70 if [ "$X" == xx ] | |
71 then | |
72 echo "\nRunning automated build." | |
73 HANDOFF=/mnt/init | |
74 fi | |
75 fi | |
66 exec /bin/oneit -c /dev/"$CONSOLE" "$HANDOFF" | 76 exec /bin/oneit -c /dev/"$CONSOLE" "$HANDOFF" |
67 | 77 |
68 # If we're not PID 1, it's probably a chroot. | 78 # If we're not PID 1, it's probably a chroot. |
69 else | 79 else |
70 [ ! -z "$(grep "default for QEMU" /etc/resolv.conf)" ] && | 80 [ ! -z "$(grep "default for QEMU" /etc/resolv.conf)" ] && |