dom0: use qubes-prefs in scripts (#421)

Instead of qvm-set-* and qvm-get-*
This commit is contained in:
Marek Marczykowski 2012-02-07 03:07:43 +01:00
parent 1a35b98e16
commit 109cdf7935
4 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@
# Source function library.
. /etc/rc.d/init.d/functions
NETVM=$(qvm-get-default-netvm)
NETVM=$(qubes-prefs --get default-netvm)
get_running_netvms() {
# Actually get running VMs with PCI devices attached

View File

@ -8,7 +8,7 @@ sync_qubes_vms_wallclock()
DATE=$(date)
echo
echo "Syncing VMs clock to: $DATE"
qvm-run --all --exclude=`qvm-get-clockvm` -u root "date -s \"$DATE\""
qvm-run --all --exclude=`qubes-prefs --get clockvm` -u root "date -s \"$DATE\""
# Then try to sync from the network
/usr/bin/qvm-sync-clock &
}

View File

@ -1,6 +1,6 @@
#!/bin/bash
UPDATEVM=`qvm-get-updatevm`
UPDATEVM=`qubes-prefs --get updatevm`
if [ -z "$UPDATEVM" ]; then
echo "UpdateVM not set, exiting"
exit 1

View File

@ -13,7 +13,7 @@ if [ "$TEMPLATENAME" = --used-template ] ; then
fi
fi
if [ "$TEMPLATENAME" = --default-template ] ; then
TEMPLATENAME=$(qvm-get-default-template)
TEMPLATENAME=$(qubes-prefs --get default-template)
if [ "X"$TEMPLATENAME = "X" ] ; then
echo No default template ?
exit 1