Update haos-vm.sh

pull/95/head
tteckster 3 years ago committed by GitHub
parent 0491c4dbdb
commit 2f6bb3d0ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -188,11 +188,8 @@ echo -e "${CM} ${CL} \r"
sed -i 's/$/ console=ttyS0/' ${TEMP_MOUNT}/cmdline.txt
qm set $VMID -serial0 socket >/dev/null
)
echo -en "${GN} Starting Home Assistant OS VM... "
qm start $VMID
sleep 15
echo -e "${CM} ${CL} \n"
CURRENT_IP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
echo -e "${CURRENT_IP}"
#echo -en "${GN} Starting Home Assistant OS VM... "
#qm start $VMID
#echo -e "${CM} ${CL} \n"
echo -e "${GN} Completed Successfully!${CL} (${VM_NAME}) VM ID is ${BL}${VMID}${CL} IP is ${BL}${CURRENT_IP}${CL}\n"
echo -e "${GN} Completed Successfully!${CL} (${VM_NAME}) VM ID is ${BL}${VMID}${CL} \n"

Loading…
Cancel
Save

Powered by BW's shoe-string budget.