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.
|
# Source function library.
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
NETVM=$(qvm-get-default-netvm)
|
NETVM=$(qubes-prefs --get default-netvm)
|
||||||
|
|
||||||
get_running_netvms() {
|
get_running_netvms() {
|
||||||
# Actually get running VMs with PCI devices attached
|
# Actually get running VMs with PCI devices attached
|
||||||
|
@ -8,7 +8,7 @@ sync_qubes_vms_wallclock()
|
|||||||
DATE=$(date)
|
DATE=$(date)
|
||||||
echo
|
echo
|
||||||
echo "Syncing VMs clock to: $DATE"
|
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
|
# Then try to sync from the network
|
||||||
/usr/bin/qvm-sync-clock &
|
/usr/bin/qvm-sync-clock &
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
UPDATEVM=`qvm-get-updatevm`
|
UPDATEVM=`qubes-prefs --get updatevm`
|
||||||
if [ -z "$UPDATEVM" ]; then
|
if [ -z "$UPDATEVM" ]; then
|
||||||
echo "UpdateVM not set, exiting"
|
echo "UpdateVM not set, exiting"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -13,7 +13,7 @@ if [ "$TEMPLATENAME" = --used-template ] ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$TEMPLATENAME" = --default-template ] ; then
|
if [ "$TEMPLATENAME" = --default-template ] ; then
|
||||||
TEMPLATENAME=$(qvm-get-default-template)
|
TEMPLATENAME=$(qubes-prefs --get default-template)
|
||||||
if [ "X"$TEMPLATENAME = "X" ] ; then
|
if [ "X"$TEMPLATENAME = "X" ] ; then
|
||||||
echo No default template ?
|
echo No default template ?
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user