[Pm-utils] [PATCH 06/17] Modify 10NetworkManager to exit $NA where applicable.

Victor Lowther victor.lowther at gmail.com
Sat Feb 16 12:30:01 PST 2008


Also get rid of redundant calls to exit.
---
 pm/sleep.d/10NetworkManager |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/pm/sleep.d/10NetworkManager b/pm/sleep.d/10NetworkManager
index d1ad677..984bf77 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 || exit $NA
 
 suspend_nm() {
     # Tell NetworkManager to shut down networking
@@ -27,8 +27,6 @@ case "$1" in
 	thaw|resume)
 		resume_nm
 		;;
-	*)
+	*) exit $NA
 		;;
 esac
-
-exit $?
-- 
1.5.3.8



More information about the Pm-utils mailing list