Final confirmation before changing security settings

This commit is contained in:
Bob Mottram 2015-02-02 19:13:41 +00:00
parent 4130db49ea
commit 2cd4b1f84e
1 changed files with 13 additions and 0 deletions

View File

@ -293,6 +293,19 @@ function interactive_setup {
255) exit 0;;
esac
fi
dialog --title "Final Confirmation" \
--backtitle "Freedombone Security Configuration" \
--defaultno \
--yesno "\nPlease confirm that you wish your security settings to be changed?\n\nWARNING: any mistakes made in the security settings could compromise your system, so be extra careful when answering 'yes'." 7 60
sel=$?
case $sel in
1) echo 'Exiting without changing security settings'
exit 0;;
255) echo 'Exiting without changing security settings'
exit 0;;
esac
clear
}