dom0: use qubes-prefs in scripts (#421)
Instead of qvm-set-* and qvm-get-*
This commit is contained in:
parent
1a35b98e16
commit
109cdf7935
@ -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
|
||||
|
@ -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 &
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user