"Accidentaly," I observed in /mnt/live/cleanup file the following:
Code: Select all
# Save 'changes=EXIT:' session:
if [ -e /tmp/changes-exit ]; then
echo -e "Your session will be saved in [1;33m3[0m seconds.\nPress space/enter to start doing it now or any other key to skip."; x=3
while [ $x -gt 0 ]; do read -s -t1 -n1 ans && break || sleep 1; let x=x-1; done
I edited the file: replaced the above code with the following:
Code: Select all
# Save 'changes=EXIT:' session:
if [ -e /tmp/changes-exit ]; then
echo -e "Do you want to save your session?\nPress space/enter if yes or any other key to skip."
read -rsn1 ans
Code: Select all
sed -i '/Your session will be saved/c\ echo -e \"Do you want to save your session?\\nPress space/enter if yes or any other key to skip.\"' /mnt/live/cleanup
sed -i '/do read -s -t1 -n1 ans/c\ read -rsn1 ans' /mnt/live/cleanup