浏览代码

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