suspend: fix dbus-send invocation

This commit is contained in:
Marek Marczykowski-Górecki 2014-05-01 01:10:57 +02:00
parent dc88dc524c
commit 969122cf4f

View File

@ -12,7 +12,7 @@ if [ -r /rw/config/suspend-module-blacklist ]; then
fi
if [ x"$action" == x"suspend" ]; then
dbus_send --system --print-reply \
dbus-send --system --print-reply \
--dest=org.freedesktop.NetworkManager \
/org/freedesktop/NetworkManager \
org.freedesktop.NetworkManager.Sleep boolean:true || \
@ -33,8 +33,8 @@ else
for mod in `cat /var/run/qubes/suspend-modules-loaded`; do
modprobe $mod
done
dbus_send --system --print-reply \
--dest=org.freedesktop.NetworkManager \
dbus-send --system --print-reply \
--dest=org.freedesktop.NetworkManager \
/org/freedesktop/NetworkManager \
org.freedesktop.NetworkManager.Sleep boolean:false || \
{ [ -x /bin/systemctl ] && systemctl start NetworkManager.service; } || service qubes-core-netvm start