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 fi
if [ x"$action" == x"suspend" ]; then if [ x"$action" == x"suspend" ]; then
dbus_send --system --print-reply \ dbus-send --system --print-reply \
--dest=org.freedesktop.NetworkManager \ --dest=org.freedesktop.NetworkManager \
/org/freedesktop/NetworkManager \ /org/freedesktop/NetworkManager \
org.freedesktop.NetworkManager.Sleep boolean:true || \ org.freedesktop.NetworkManager.Sleep boolean:true || \
@ -33,7 +33,7 @@ else
for mod in `cat /var/run/qubes/suspend-modules-loaded`; do for mod in `cat /var/run/qubes/suspend-modules-loaded`; do
modprobe $mod modprobe $mod
done done
dbus_send --system --print-reply \ dbus-send --system --print-reply \
--dest=org.freedesktop.NetworkManager \ --dest=org.freedesktop.NetworkManager \
/org/freedesktop/NetworkManager \ /org/freedesktop/NetworkManager \
org.freedesktop.NetworkManager.Sleep boolean:false || \ org.freedesktop.NetworkManager.Sleep boolean:false || \