[Pm-utils] [PATCH 07/17] Added an additional check for NetworkManager, removed redundant exit call.
Victor Lowther
victor.lowther at gmail.com
Mon Feb 11 13:50:59 PST 2008
---
pm/sleep.d/10NetworkManager | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/pm/sleep.d/10NetworkManager b/pm/sleep.d/10NetworkManager
index d1ad677..5c526eb 100755
--- a/pm/sleep.d/10NetworkManager
+++ b/pm/sleep.d/10NetworkManager
@@ -2,7 +2,7 @@
. "${PM_FUNCTIONS}"
-command_exists dbus-send || exit 1
+command_exists dbus-send && command_exists NetworkManager || exit
suspend_nm() {
# Tell NetworkManager to shut down networking
@@ -30,5 +30,3 @@ case "$1" in
*)
;;
esac
-
-exit $?
--
1.5.3.8
More information about the Pm-utils
mailing list