Update haos-vm-v5.sh

default settings more readable in code
This commit is contained in:
tteckster 2023-02-10 14:43:58 -05:00 committed by GitHub
parent f1be33211e
commit 9e2a0e18f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 24 deletions

View File

@ -102,30 +102,30 @@ function ARCH_CHECK() {
fi fi
} }
function default_settings() { function default_settings() {
echo -e "${DGN}Using HAOS Version: ${BGN}${stable}${CL}" BRANCH="$stable"
BRANCH=${stable} VMID="$NEXTID"
echo -e "${DGN}Using Virtual Machine ID: ${BGN}$NEXTID${CL}" FORMAT=",efitype=4m"
VMID=$NEXTID MACHINE=""
echo -e "${DGN}Using Machine Type: ${BGN}i440fx${CL}" HN="haos$stable"
FORMAT=",efitype=4m" CORE_COUNT="2"
MACHINE="" RAM_SIZE="4096"
echo -e "${DGN}Using Hostname: ${BGN}haos${stable}${CL}" BRG="vmbr0"
HN=haos${stable} MAC="$GEN_MAC"
echo -e "${DGN}Allocated Cores: ${BGN}2${CL}" VLAN=""
CORE_COUNT="2" MTU=""
echo -e "${DGN}Allocated RAM: ${BGN}4096${CL}" START_VM="yes"
RAM_SIZE="4096" echo -e "${DGN}Using HAOS Version: ${BGN}${BRANCH}${CL}"
echo -e "${DGN}Using Bridge: ${BGN}vmbr0${CL}" echo -e "${DGN}Using Virtual Machine ID: ${BGN}${VMID}${CL}"
BRG="vmbr0" echo -e "${DGN}Using Machine Type: ${BGN}i440fx${CL}"
echo -e "${DGN}Using MAC Address: ${BGN}$GEN_MAC${CL}" echo -e "${DGN}Using Hostname: ${BGN}${HN}${CL}"
MAC=$GEN_MAC echo -e "${DGN}Allocated Cores: ${BGN}${CORE_COUNT}${CL}"
echo -e "${DGN}Using VLAN: ${BGN}Default${CL}" echo -e "${DGN}Allocated RAM: ${BGN}${RAM_SIZE}${CL}"
VLAN="" echo -e "${DGN}Using Bridge: ${BGN}${BRG}${CL}"
echo -e "${DGN}Using Interface MTU Size: ${BGN}Default${CL}" echo -e "${DGN}Using MAC Address: ${BGN}${MAC}${CL}"
MTU="" echo -e "${DGN}Using VLAN: ${BGN}Default${CL}"
echo -e "${DGN}Start VM when completed: ${BGN}yes${CL}" echo -e "${DGN}Using Interface MTU Size: ${BGN}Default${CL}"
START_VM="yes" echo -e "${DGN}Start VM when completed: ${BGN}yes${CL}"
echo -e "${BL}Creating a HAOS VM using the above default settings${CL}" echo -e "${BL}Creating a HAOS VM using the above default settings${CL}"
} }
function advanced_settings() { function advanced_settings() {
BRANCH=$(whiptail --title "HAOS VERSION" --radiolist "Choose Version" --cancel-button Exit-Script 10 58 3 \ BRANCH=$(whiptail --title "HAOS VERSION" --radiolist "Choose Version" --cancel-button Exit-Script 10 58 3 \