Notify that logging changes take a while

This commit is contained in:
Bob Mottram 2015-11-15 11:22:11 +00:00
parent 374ed7874d
commit e8c32454e2
1 changed files with 16 additions and 7 deletions

View File

@ -474,15 +474,24 @@ function restore_data_remote {
}
function logging_on_off {
logging="no"
dialog --title "Logging" \
--backtitle "Freedombone Control Panel" \
--yesno "\nDo you want to turn logging on?" 7 60
sel=$?
case $sel in
0) freedombone-logging on;;
1) freedombone-logging off;;
0) logging="yes";;
255) return;;
esac
clear
echo ''
echo 'This may take a few seconds. Please wait...'
if [[ $logging == "no" ]]; then
freedombone-logging off
else
freedombone-logging on
fi
}
function restore_gpg_key {