summaryrefslogtreecommitdiff
path: root/pm/sleep.d/55NetworkManager
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2010-06-15 07:03:22 -0500
committerVictor Lowther <victor.lowther@gmail.com>2010-06-15 07:03:22 -0500
commitef1e0968b93d2e3425183e6f18747082b5c3a7c5 (patch)
tree9d8ec23b796a75f59c6b0a8a3a36d61f8432b0a0 /pm/sleep.d/55NetworkManager
parentcb0ad2d4e13972810ebbe2a979b5cb37d740149a (diff)
Added informative messages to some of the sleep hooks.
Diffstat (limited to 'pm/sleep.d/55NetworkManager')
-rwxr-xr-xpm/sleep.d/55NetworkManager10
1 files changed, 7 insertions, 3 deletions
diff --git a/pm/sleep.d/55NetworkManager b/pm/sleep.d/55NetworkManager
index bc0cf5a..f3c6df5 100755
--- a/pm/sleep.d/55NetworkManager
+++ b/pm/sleep.d/55NetworkManager
@@ -11,19 +11,23 @@
suspend_nm()
{
# Tell NetworkManager to shut down networking
+ printf "Having NetworkManager put all interaces to sleep..."
dbus_send --system \
--dest=org.freedesktop.NetworkManager \
/org/freedesktop/NetworkManager \
- org.freedesktop.NetworkManager.sleep
+ org.freedesktop.NetworkManager.sleep && \
+ echo Done. || echo Failed.
}
resume_nm()
{
# Wake up NetworkManager and make it do a new connection
- dbus_send --system \
+ printf "Having NetworkManager wake interfaces back up..."
+ dbus_send --system \
--dest=org.freedesktop.NetworkManager \
/org/freedesktop/NetworkManager \
- org.freedesktop.NetworkManager.wake
+ org.freedesktop.NetworkManager.wake && \
+ echo Done. || echo Failed.
}
case "$1" in