Wait for a specific keypress

This commit is contained in:
Bob Mottram 2016-01-05 11:16:11 +00:00
parent 5c9ddc7fbd
commit bae3bcc43e
1 changed files with 4 additions and 1 deletions

View File

@ -308,7 +308,10 @@ EOF
echo ' reboot' >> $rootdir/root/.bashrc echo ' reboot' >> $rootdir/root/.bashrc
echo ' fi' >> $rootdir/root/.bashrc echo ' fi' >> $rootdir/root/.bashrc
echo ' else' >> $rootdir/root/.bashrc echo ' else' >> $rootdir/root/.bashrc
echo ' read -n1 -r -p $"Installation failed. Press any key to continue..." key' >> $rootdir/root/.bashrc echo ' key=' >> $rootdir/root/.bashrc
echo ' while [[ $key != "x" ]]; do' >> $rootdir/root/.bashrc
echo ' read -n1 -r -p "Press x to continue..." key' >> $rootdir/root/.bashrc
echo ' done' >> $rootdir/root/.bashrc
echo ' fi' >> $rootdir/root/.bashrc echo ' fi' >> $rootdir/root/.bashrc
echo ' exit' >> $rootdir/root/.bashrc echo ' exit' >> $rootdir/root/.bashrc
echo 'else' >> $rootdir/root/.bashrc echo 'else' >> $rootdir/root/.bashrc