ソースを参照

Final confirmation before changing security settings

Bob Mottram 10 年 前
コミット
2cd4b1f84e
共有1 個のファイルを変更した13 個の追加0 個の削除を含む
  1. 13
    0
      src/freedombone-sec

+ 13
- 0
src/freedombone-sec ファイルの表示

@@ -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