Added dialog to choose platform
This commit is contained in:
parent
808ddd074a
commit
e47ec0b065
6
fresh.sh
6
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user