[Pm-utils] [PATCH 09/17] 90clock updates

Victor Lowther victor.lowther at gmail.com
Sat Feb 9 18:31:13 PST 2008


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



More information about the Pm-utils mailing list