mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Renaming ADSB to ADS-B
This commit is contained in:
parent
b6cac63138
commit
91baa71168
1 changed files with 20 additions and 20 deletions
|
@ -9,12 +9,12 @@
|
||||||
|
|
||||||
function header_info {
|
function header_info {
|
||||||
cat <<"EOF"
|
cat <<"EOF"
|
||||||
___ ____ _____ ____ ______ __ _ ____ ___
|
___ ____ _____ ____ ______ __ _ ____ ___
|
||||||
/ | / __ \/ ___// __ ) / ____/__ ___ ____/ /__ _____ | | / / |/ /
|
/ | / __ \/ ___/ / __ ) / ____/__ ___ ____/ /__ _____ | | / / |/ /
|
||||||
/ /| | / / / /\__ \/ __ |_____/ /_ / _ \/ _ \/ __ / _ \/ ___/ | | / / /|_/ /
|
/ /| | / / / /\__ \______/ __ | / /_ / _ \/ _ \/ __ / _ \/ ___/ | | / / /|_/ /
|
||||||
/ ___ |/ /_/ /___/ / /_/ /_____/ __/ / __/ __/ /_/ / __/ / | |/ / / / /
|
/ ___ |/ /_/ /___/ /_____/ /_/ / / __/ / __/ __/ /_/ / __/ / | |/ / / / /
|
||||||
/_/ |_/_____//____/_____/ /_/ \___/\___/\__,_/\___/_/ |___/_/ /_/
|
/_/ |_/_____//____/ /_____/ /_/ \___/\___/\__,_/\___/_/ |___/_/ /_/
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
clear
|
clear
|
||||||
|
@ -71,7 +71,7 @@ pushd $TEMP_DIR >/dev/null
|
||||||
sleep 3
|
sleep 3
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADSB Feeder VM" --yesno "This will create a New ADSB Feeder VM. Proceed?" 10 58); then
|
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADS-B Feeder VM" --yesno "This will create a New ADS-B Feeder VM. Proceed?" 10 58); then
|
||||||
echo "User selected Yes"
|
echo "User selected Yes"
|
||||||
else
|
else
|
||||||
clear
|
clear
|
||||||
|
@ -106,7 +106,7 @@ function default_settings() {
|
||||||
echo -e "${DGN}Using VLAN: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN: ${BGN}Default${CL}"
|
||||||
echo -e "${DGN}Using Interface MTU Size: ${BGN}Default${CL}"
|
echo -e "${DGN}Using Interface MTU Size: ${BGN}Default${CL}"
|
||||||
echo -e "${DGN}Start VM when completed: ${BGN}no${CL}"
|
echo -e "${DGN}Start VM when completed: ${BGN}no${CL}"
|
||||||
echo -e "${BL}Creating a ADSB Feeder VM using the above default settings${CL}"
|
echo -e "${BL}Creating a ADS-B Feeder VM using the above default settings${CL}"
|
||||||
}
|
}
|
||||||
function advanced_settings() {
|
function advanced_settings() {
|
||||||
VMID=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Virtual Machine ID" 8 58 $NEXTID --title "VIRTUAL MACHINE ID" 3>&1 1>&2 2>&3)
|
VMID=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Virtual Machine ID" 8 58 $NEXTID --title "VIRTUAL MACHINE ID" 3>&1 1>&2 2>&3)
|
||||||
|
@ -176,14 +176,14 @@ function advanced_settings() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "START VIRTUAL MACHINE" --yesno "Start Mikrotik RouterOS CHR VM when completed?" 10 58); then
|
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "START VIRTUAL MACHINE" --yesno "Start Mikrotik RouterOS CHR VM when completed?" 10 58); then
|
||||||
echo -e "${DGN}Start ADSB Feeder VM when completed: ${BGN}yes${CL}"
|
echo -e "${DGN}Start ADS-B Feeder VM when completed: ${BGN}yes${CL}"
|
||||||
START_VM="yes"
|
START_VM="yes"
|
||||||
else
|
else
|
||||||
echo -e "${DGN}Start ADSB Feeder VM when completed: ${BGN}no${CL}"
|
echo -e "${DGN}Start ADS-B Feeder VM when completed: ${BGN}no${CL}"
|
||||||
START_VM="no"
|
START_VM="no"
|
||||||
fi
|
fi
|
||||||
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ADSB Feeder VM?" 10 58); then
|
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ADSB Feeder VM?" 10 58); then
|
||||||
echo -e "${RD}Creating ADSB Feeder VM using the above advanced settings${CL}"
|
echo -e "${RD}Creating ADS-B Feeder VM using the above advanced settings${CL}"
|
||||||
else
|
else
|
||||||
clear
|
clear
|
||||||
header_info
|
header_info
|
||||||
|
@ -227,14 +227,14 @@ elif [ $((${#STORAGE_MENU[@]} / 3)) -eq 1 ]; then
|
||||||
else
|
else
|
||||||
while [ -z "${STORAGE:+x}" ]; do
|
while [ -z "${STORAGE:+x}" ]; do
|
||||||
STORAGE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Storage Pools" --radiolist \
|
STORAGE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Storage Pools" --radiolist \
|
||||||
"Which storage pool you would like to use for the ADSB Feeder VM?\n\n" \
|
"Which storage pool you would like to use for the ADS-B Feeder VM?\n\n" \
|
||||||
16 $(($MSG_MAX_LENGTH + 23)) 6 \
|
16 $(($MSG_MAX_LENGTH + 23)) 6 \
|
||||||
"${STORAGE_MENU[@]}" 3>&1 1>&2 2>&3) || exit
|
"${STORAGE_MENU[@]}" 3>&1 1>&2 2>&3) || exit
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location."
|
msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location."
|
||||||
msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}."
|
msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}."
|
||||||
msg_info "Getting URL for ADSB Feeder Disk Image"
|
msg_info "Getting URL for ADS-B Feeder Disk Image"
|
||||||
|
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/dirkhh/adsb-feeder-image/releases/latest | grep -oP '"tag_name": "\K[^"]+')
|
RELEASE=$(curl -s https://api.github.com/repos/dirkhh/adsb-feeder-image/releases/latest | grep -oP '"tag_name": "\K[^"]+')
|
||||||
URL=https://github.com/dirkhh/adsb-feeder-image/releases/download/${RELEASE}/adsb-im-x86-64-vm-${RELEASE}-proxmox.tar.xz
|
URL=https://github.com/dirkhh/adsb-feeder-image/releases/download/${RELEASE}/adsb-im-x86-64-vm-${RELEASE}-proxmox.tar.xz
|
||||||
|
@ -267,8 +267,8 @@ esac
|
||||||
DISK_VAR="vm-${VMID}-disk-0${DISK_EXT:-}"
|
DISK_VAR="vm-${VMID}-disk-0${DISK_EXT:-}"
|
||||||
DISK_REF="${STORAGE}:${DISK_VAR:-}"
|
DISK_REF="${STORAGE}:${DISK_VAR:-}"
|
||||||
|
|
||||||
msg_ok "Extracted ADSB Feeder Disk Image"
|
msg_ok "Extracted ADS-B Feeder Disk Image"
|
||||||
msg_info "Creating ADSB Feeder VM (Patience) "
|
msg_info "Creating ADS-B Feeder VM (Patience) "
|
||||||
qm create $VMID -tablet 0 -localtime 1 -cores $CORE_COUNT -memory $RAM_SIZE -name $HN \
|
qm create $VMID -tablet 0 -localtime 1 -cores $CORE_COUNT -memory $RAM_SIZE -name $HN \
|
||||||
-tags proxmox-helper-scripts -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU \
|
-tags proxmox-helper-scripts -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU \
|
||||||
-onboot 1 -ostype l26 -scsihw virtio-scsi-pci
|
-onboot 1 -ostype l26 -scsihw virtio-scsi-pci
|
||||||
|
@ -278,14 +278,14 @@ qm set $VMID \
|
||||||
-boot order=scsi0 \
|
-boot order=scsi0 \
|
||||||
-description "<div align='center'><a href='https://Helper-Scripts.com'><img src='https://raw.githubusercontent.com/tteck/Proxmox/main/misc/images/logo-81x112.png'/></a>
|
-description "<div align='center'><a href='https://Helper-Scripts.com'><img src='https://raw.githubusercontent.com/tteck/Proxmox/main/misc/images/logo-81x112.png'/></a>
|
||||||
|
|
||||||
# ADSB Feeder VM
|
# ADS-B Feeder VM
|
||||||
|
|
||||||
<a href='https://ko-fi.com/D1D7EP4GF'><img src='https://img.shields.io/badge/☕-Buy me a coffee-blue' /></a>
|
<a href='https://ko-fi.com/D1D7EP4GF'><img src='https://img.shields.io/badge/☕-Buy me a coffee-blue' /></a>
|
||||||
</div>" >/dev/null
|
</div>" >/dev/null
|
||||||
msg_ok "ADSB Feeder VM ${CL}${BL}(${HN})"
|
msg_ok "ADS-B Feeder VM ${CL}${BL}(${HN})"
|
||||||
if [ "$START_VM" == "yes" ]; then
|
if [ "$START_VM" == "yes" ]; then
|
||||||
msg_info "Starting ADSB Feeder VM"
|
msg_info "Starting ADS-B Feeder VM"
|
||||||
qm start $VMID
|
qm start $VMID
|
||||||
msg_ok "Started ADSB Feeder VM"
|
msg_ok "Started ADS-B Feeder VM"
|
||||||
fi
|
fi
|
||||||
msg_ok "Completed Successfully!\n"
|
msg_ok "Completed Successfully!\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue