From bae3bcc43eac7df2518f76b02e5121583d5c24cf Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 5 Jan 2016 11:16:11 +0000 Subject: [PATCH] Wait for a specific keypress --- src/freedombone-image-customise | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 80f707c0..3aeea542 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -308,7 +308,10 @@ EOF echo ' reboot' >> $rootdir/root/.bashrc echo ' fi' >> $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 ' exit' >> $rootdir/root/.bashrc echo 'else' >> $rootdir/root/.bashrc