From 2cd4b1f84e2ae46fee4aa3d9322d25c19af20987 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Feb 2015 19:13:41 +0000 Subject: [PATCH] Final confirmation before changing security settings --- src/freedombone-sec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/freedombone-sec b/src/freedombone-sec index f3fe7f8e..1990715c 100755 --- a/src/freedombone-sec +++ b/src/freedombone-sec @@ -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 }