Modified 90clock to pass just a filename to the locking functions, and
to get rid of an unneeded return command.
---
 pm/sleep.d/90clock |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/pm/sleep.d/90clock b/pm/sleep.d/90clock
index 34df62e..4e6478e 100755
--- a/pm/sleep.d/90clock
+++ b/pm/sleep.d/90clock
@@ -1,7 +1,7 @@
 #!/bin/sh
 . "${PM_FUNCTIONS}"
 
-NTPD_LOCK="/var/run/pm-utils/pm-ntpd.lock"
+NTPD_LOCK="pm-ntpd.lock"
 
 suspend_clock() {
        if try_lock "${NTPD_LOCK}"; then
@@ -9,7 +9,6 @@ suspend_clock() {
                stopservice ntpd
        fi
        /sbin/hwclock --systohc >/dev/null 2>&1 0<&1
-       return $?
 }
 
 resume_clock() {
-- 
1.5.3.8

_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to