Kablersalat 9 місяців тому
батько
коміт
1a0c37354d
1 змінених файлів з 4 додано та 2 видалено
  1. 4 2
      installer.sh

+ 4 - 2
installer.sh

@@ -60,7 +60,9 @@ EOF
 
 # Function to configure automatic sign-in
 configure_autologin() {
-  dialog --title "Automatic Login Configuration" --msgbox "Configuring automatic login..." 10 50
+  if [[ $1 != "--auto" ]]; then
+    dialog --title "Automatic Login Configuration" --msgbox "Configuring automatic login..." 10 50
+  fi
   sudo mkdir -p /etc/systemd/system/getty@tty1.service.d
   sudo bash -c "cat > /etc/systemd/system/getty@tty1.service.d/autologin.conf << 'EOF'
 [Service]
@@ -202,7 +204,7 @@ if [[ $1 == "--auto" ]]; then
   [[ $distro == "raspberry" ]] && install_packages_raspberry
   configure_xinitrc
   configure_start_sh $scaling_factor $vnc_password "$@"
-  configure_autologin
+  configure_autologin --auto
   edit_bashrc
 else
 dialog --title "WARNING !!!" --msgbox "Do not run this script under any user other than 'kiosk' and make sure the Kiosk user has sudo rights for the duration of the installation. In addition, check out the -h command on this script if you wish to do the installation more automated!" 10 50