Kablersalat 9 ماه پیش
والد
کامیت
cde3bd2ffc
1فایلهای تغییر یافته به همراه21 افزوده شده و 16 حذف شده
  1. 21 16
      kiosk.sh

+ 21 - 16
kiosk.sh

@@ -193,23 +193,28 @@ dialog --title "WARNING !!!" --msgbox "Do not run this script under any user oth
   # Main menu for guided installation
   current_step=1
   while true; do
-    CHOICE=$(dialog --title "Rafisa Kiosk Configuration Menu" --menu "Choose an option:" 20 60 10 \
-      1 "Install Required Packages" \
-      2 "Install .xinitrc file" \
-      3 "Configure and Install Kiosk script (start.sh)" \
-      4 "Enable Automatic Sign-In" \
-      5 "Append X autostart to .bashrc for console users" \
-      6 "Exit" \
-      3>&1 1>&2 2>&3 3>&-)
-
     case $current_step in
-      1) install_packages ;;
-      2) configure_xinitrc ;;
-      3) configure_start_sh ;;
-      4) configure_autologin ;;
-      5) edit_bashrc ;;
-      6) break ;;
-      *) echo "Invalid option. Try another one." >&2
+      1)
+        install_packages
+        ;;
+      2)
+        configure_xinitrc
+        ;;
+      3)
+        configure_start_sh
+        ;;
+      4)
+        configure_autologin
+        ;;
+      5)
+        edit_bashrc
+        ;;
+      6)
+        break
+        ;;
+      *)
+        echo "Invalid option. Try another one." >&2
+        ;;
     esac
 
     # Automatically proceed to the next step if the previous step was successful