From 56de05a3928b8567eab63587bd3c184119e539e3 Mon Sep 17 00:00:00 2001
From: chpego <38792705+chpego@users.noreply.github.com>
Date: Wed, 12 Feb 2025 11:05:08 +0100
Subject: [PATCH] Fix: Typo OPNsense VM (#2291)
---
vm/opnsense-vm.sh | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/vm/opnsense-vm.sh b/vm/opnsense-vm.sh
index 9e4439d8..0d298e4e 100644
--- a/vm/opnsense-vm.sh
+++ b/vm/opnsense-vm.sh
@@ -142,7 +142,7 @@ function send_line_to_vm() {
TEMP_DIR=$(mktemp -d)
pushd $TEMP_DIR >/dev/null
-if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "OpnSense VM" --yesno "This will create a New OpnSense VM. Proceed?" 10 58); then
+if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "OPNsense VM" --yesno "This will create a New OPNsense VM. Proceed?" 10 58); then
:
else
header_info && echo -e "⚠ User exited script \n" && exit
@@ -246,7 +246,7 @@ function default_settings() {
fi
echo -e "${DGN}Using Interface MTU Size: ${BGN}Default${CL}"
echo -e "${DGN}Start VM when completed: ${BGN}yes${CL}"
- echo -e "${BL}Creating a OpnSense VM using the above default settings${CL}"
+ echo -e "${BL}Creating a OPNsense VM using the above default settings${CL}"
}
function advanced_settings() {
@@ -316,9 +316,9 @@ function advanced_settings() {
exit-script
fi
- if VM_NAME=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Hostname" 8 58 OpnSense --title "HOSTNAME" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
+ if VM_NAME=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Hostname" 8 58 OPNsense --title "HOSTNAME" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
if [ -z $VM_NAME ]; then
- HN="OpnSense"
+ HN="OPNsense"
else
HN=$(echo ${VM_NAME,,} | tr -d ' ')
fi
@@ -468,8 +468,8 @@ function advanced_settings() {
exit-script
fi
- if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create OpnSense VM?" --no-button Do-Over 10 58); then
- echo -e "${RD}Creating a OpnSense VM using the above advanced settings${CL}"
+ if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create OPNsense VM?" --no-button Do-Over 10 58); then
+ echo -e "${RD}Creating a OPNsense VM using the above advanced settings${CL}"
else
header_info
echo -e "${RD}Using Advanced Settings${CL}"
@@ -523,7 +523,7 @@ else
fi
msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location."
msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}."
-msg_info "Retrieving the URL for the OpnSense Qcow2 Disk Image"
+msg_info "Retrieving the URL for the OPNsense Qcow2 Disk Image"
URL=https://download.freebsd.org/releases/VM-IMAGES/14.2-RELEASE/amd64/Latest/FreeBSD-14.2-RELEASE-amd64.qcow2.xz
sleep 2
msg_ok "${CL}${BL}${URL}${CL}"
@@ -555,7 +555,7 @@ for i in {0,1}; do
eval DISK${i}_REF=${STORAGE}:${DISK_REF:-}${!disk}
done
-msg_info "Creating a OpnSense VM"
+msg_info "Creating a OPNsense VM"
qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios ovmf${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \
-name $HN -tags proxmox-helper-scripts -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci
pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null
@@ -573,7 +573,7 @@ qm resize $VMID scsi0 10G >/dev/null
-