Update haos-vm.sh

This commit is contained in:
tteckster 2022-03-22 06:27:04 -04:00 committed by GitHub
parent 4c304615a0
commit 0491c4dbdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -188,8 +188,11 @@ echo -e "${CM} ${CL} \r"
sed -i 's/$/ console=ttyS0/' ${TEMP_MOUNT}/cmdline.txt sed -i 's/$/ console=ttyS0/' ${TEMP_MOUNT}/cmdline.txt
qm set $VMID -serial0 socket >/dev/null qm set $VMID -serial0 socket >/dev/null
) )
#echo -en "${GN} Starting Home Assistant OS VM... " echo -en "${GN} Starting Home Assistant OS VM... "
#qm start $VMID qm start $VMID
#echo -e "${CM} ${CL} \n" 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 -e "${GN} Completed Successfully!${CL} (${VM_NAME}) VM ID is ${BL}${VMID}${CL} \n" echo -e "${GN} Completed Successfully!${CL} (${VM_NAME}) VM ID is ${BL}${VMID}${CL} IP is ${BL}${CURRENT_IP}${CL}\n"