Added dialog to choose platform

master
Toerd 6 years ago
parent 808ddd074a
commit e47ec0b065

@ -1,6 +1,4 @@
#!/bin/bash #!/bin/bash
# userinput and resume after reboot
# mkfs.fat -F 32 -n EFIBOOT /dev/
# Get params # Get params
while getopts "r:p:d:v:h" opt; while getopts "r:p:d:v:h" opt;
@ -27,8 +25,8 @@ if [ -z ${v+x} ]; then
fi fi
startup_msg() { startup_msg() {
dialog --infobox "Welcome to the installer." 0 0 || { clear; exit; } 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\n\n" >> $logfile echo "Installation started - Platform is: $curr_platform\n\n" >> $logfile
} }
init() { init() {

Loading…
Cancel
Save