Bladeren bron

Final confirmation before changing security settings

Bob Mottram 10 jaren geleden
bovenliggende
commit
2cd4b1f84e
1 gewijzigde bestanden met toevoegingen van 13 en 0 verwijderingen
  1. 13
    0
      src/freedombone-sec

+ 13
- 0
src/freedombone-sec Bestand weergeven

@@ -293,6 +293,19 @@ function interactive_setup {
293 293
           255) exit 0;;
294 294
       esac
295 295
   fi
296
+
297
+  dialog --title "Final Confirmation" \
298
+      --backtitle "Freedombone Security Configuration" \
299
+      --defaultno \
300
+      --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
301
+  sel=$?
302
+  case $sel in
303
+      1) echo 'Exiting without changing security settings'
304
+         exit 0;;
305
+      255) echo 'Exiting without changing security settings'
306
+           exit 0;;
307
+  esac
308
+
296 309
   clear
297 310
 }
298 311