parse_cmdline() {
proxdebug=0
+ proxtui=0
# shellcheck disable=SC2013 # per word splitting is wanted here
for par in $(cat /proc/cmdline); do
case $par in
proxdebug)
- proxdebug=1
+ proxdebug=1
+ ;;
+ proxtui)
+ proxtui=1
;;
esac
done;
/usr/bin/proxmox-low-level-installer dump-env
-echo "Starting the installer GUI - see tty2 (CTRL+ALT+F2) for any errors..."
-xinit -- -dpi "$DPI" >/dev/tty2 2>&1
+if [ $proxtui -ne 0 ]; then
+ echo "Starting the TUI installer"
+ /usr/bin/proxmox-tui-installer
+else
+ echo "Starting the installer GUI - see tty2 (CTRL+ALT+F2) for any errors..."
+ xinit -- -dpi "$DPI" >/dev/tty2 2>&1
+fi
# just to be sure everything is on disk
sync