Wait for a specific keypress
This commit is contained in:
parent
5c9ddc7fbd
commit
bae3bcc43e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue