From e47ec0b0652793d7e786f6bd3c85bff32e1b25f1 Mon Sep 17 00:00:00 2001 From: Toerd Date: Sat, 15 Sep 2018 22:49:10 +0200 Subject: [PATCH] Added dialog to choose platform --- fresh.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fresh.sh b/fresh.sh index d01734c..37e46ca 100755 --- a/fresh.sh +++ b/fresh.sh @@ -1,6 +1,4 @@ #!/bin/bash -# userinput and resume after reboot -# mkfs.fat -F 32 -n EFIBOOT /dev/ # Get params while getopts "r:p:d:v:h" opt; @@ -27,8 +25,8 @@ if [ -z ${v+x} ]; then fi startup_msg() { - dialog --infobox "Welcome to the installer." 0 0 || { clear; exit; } - echo "Installation started\n\n" >> $logfile + curr_platform=$(dialog --clear --titel "Welcome to the installer <3" --menu "Choose your current platform:" 0 0 2 "L" "Laptop" "D" "Desktop" 2>&1>/dev/tty) + echo "Installation started - Platform is: $curr_platform\n\n" >> $logfile } init() {