vm/netwatcher: watch also for netvm change (#478)

This commit is contained in:
Marek Marczykowski 2012-03-09 01:01:30 +01:00
parent 8170a6d675
commit 0bad3c3dec

View File

@ -24,8 +24,8 @@ while true; do
/usr/bin/xenstore-write qubes_netvm_external_ip "$CURR_NETCFG"
fi
/usr/bin/xenstore-watch-qubes /local/domain/$NET_DOMID/qubes_netvm_external_ip
/usr/bin/xenstore-watch -n 2 /local/domain/$NET_DOMID/qubes_netvm_external_ip qubes_netvm_domid
else
/usr/bin/xenstore-watch-qubes qubes_netvm_domid
/usr/bin/xenstore-watch -n 1 qubes_netvm_domid
fi
done