diff --git a/dom0/init.d/qubes_core b/dom0/init.d/qubes_core index 9787677a..640323f9 100755 --- a/dom0/init.d/qubes_core +++ b/dom0/init.d/qubes_core @@ -46,6 +46,9 @@ stop() { echo -n $"Shutting down all Qubes VMs:" NETVM=$(qvm-get-default-netvm) + if [ "X"$NETVM = "X" ] ; then + NETVM="dom0" + fi qvm-run -q --shutdown --all --wait --exclude $NETVM rm -f /var/lock/subsys/qubes_core killall meminfo-writer diff --git a/rpm_spec/core-dom0.spec b/rpm_spec/core-dom0.spec index 7d54df4b..80d2dca8 100644 --- a/rpm_spec/core-dom0.spec +++ b/rpm_spec/core-dom0.spec @@ -175,7 +175,7 @@ done /etc/init.d/qubes_core start NETVM=$(qvm-get-default-netvm) -if [ $NETVM = "dom0" ] ; then +if [ "X"$NETVM = "X""dom0" ] ; then /etc/init.d/qubes_netvm start fi @@ -191,7 +191,7 @@ fi if [ "$1" -gt 1 ] ; then # upgrading already installed package... NETVM=$(qvm-get-default-netvm) - if [ $NETVM = "dom0" ] ; then + if [ "X"$NETVM = "X""dom0" ] ; then /etc/init.d/qubes_netvm stop fi