mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-17 20:11:17 +00:00
Update omada-v3.sh
This commit is contained in:
parent
294b3eb6ed
commit
4a78e27e38
@ -194,10 +194,10 @@ header_info
|
|||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
echo -e "${YW}Enter a Bridge, or Press [ENTER] for Default: vmbr0 "
|
||||||
read NET
|
read BRG
|
||||||
if [ -z $NET ]; then NET="dhcp"; fi;
|
if [ -z $BRG ]; then BRG="vmbr0"; fi;
|
||||||
echo -en "${DGN}Set Static IP Address To ${BL}$NET${CL}"
|
echo -en "${DGN}Set Bridge To ${BL}$BRG${CL}"
|
||||||
echo -e " ${CM}${CL} \n"
|
echo -e " ${CM}${CL} \n"
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
clear
|
||||||
@ -210,6 +210,24 @@ header_info
|
|||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
|
echo -e "${YW}Enter a Static IP Address, or Press [ENTER] for Default: DHCP "
|
||||||
|
read NET
|
||||||
|
if [ -z $NET ]; then NET="dhcp"; fi;
|
||||||
|
echo -en "${DGN}Set Static IP Address To ${BL}$NET${CL}"
|
||||||
|
echo -e " ${CM}${CL} \n"
|
||||||
|
sleep 1
|
||||||
|
clear
|
||||||
|
header_info
|
||||||
|
echo -e "${RD}Using Advanced Settings${CL}"
|
||||||
|
echo -e "${DGN}Using CT Type ${BGN}$CT_TYPE1${CL}"
|
||||||
|
echo -e "${DGN}Using CT Password ${BGN}$PW1${CL}"
|
||||||
|
echo -e "${DGN}Using CT ID ${BGN}$CT_ID${CL}"
|
||||||
|
echo -e "${DGN}Using CT Name ${BGN}$HN${CL}"
|
||||||
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a Gateway IP, or Press [ENTER] for Default: NONE "
|
||||||
read GATE1
|
read GATE1
|
||||||
@ -232,6 +250,7 @@ header_info
|
|||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
echo -e "${YW}Enter a VLAN Tag, or Press [ENTER] for Default: NONE "
|
||||||
@ -254,6 +273,7 @@ header_info
|
|||||||
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
echo -e "${DGN}Using Disk Size ${BGN}$DISK_SIZE${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
echo -e "${DGN}Using ${BGN}${CORE_COUNT}vCPU${CL}"
|
||||||
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
echo -e "${DGN}Using ${BGN}${RAM_SIZE}MiB${CL}${DGN} RAM${CL}"
|
||||||
|
echo -e "${DGN}Using Bridge ${BGN}${BRG}${CL}"
|
||||||
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
echo -e "${DGN}Using Static IP Address ${BGN}$NET${CL}"
|
||||||
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
echo -e "${DGN}Using Gateway IP Address ${BGN}$GATE1${CL}"
|
||||||
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using VLAN Tag ${BGN}$VLAN1${CL}"
|
||||||
@ -293,7 +313,7 @@ export PCT_DISK_SIZE=$DISK_SIZE
|
|||||||
export PCT_OPTIONS="
|
export PCT_OPTIONS="
|
||||||
-features $FEATURES
|
-features $FEATURES
|
||||||
-hostname $HN
|
-hostname $HN
|
||||||
-net0 name=eth0,bridge=vmbr0,ip=$NET$GATE$VLAN
|
-net0 name=eth0,bridge=$BRG,ip=$NET$GATE$VLAN
|
||||||
-onboot 1
|
-onboot 1
|
||||||
-cores $CORE_COUNT
|
-cores $CORE_COUNT
|
||||||
-memory $RAM_SIZE
|
-memory $RAM_SIZE
|
||||||
|
Loading…
Reference in New Issue
Block a user