Enable logging on the control panel

This commit is contained in:
Bob Mottram 2015-10-31 23:09:32 +00:00
parent e6e9f9d771
commit 7791359dd8
1 changed files with 10 additions and 2 deletions

View File

@ -314,7 +314,15 @@ function restore_data_remote {
}
function logging_on_off {
and_key
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;;
255) return;;
esac
}
function restore_gpg_key {
@ -335,7 +343,7 @@ function menu_top_level {
trap "rm -f $data" 0 1 2 5 15
dialog --backtitle "Freedombone Control Panel" \
--title "Control Panel" \
--radiolist "Choose an operation:" 24 70 15 \
--radiolist "Choose an operation:" 24 70 16 \
1 "Backup data to USB drive" off \
2 "Restore data from USB drive" off \
3 "Restore from remote backup" off \