Module Name:    src
Committed By:   jruoho
Date:           Sun Apr 25 07:00:50 UTC 2010

Modified Files:
        src/share/man/man4: acpilid.4

Log Message:
No need to spread bad shell script practices in manual pages...


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/acpilid.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/acpilid.4
diff -u src/share/man/man4/acpilid.4:1.4 src/share/man/man4/acpilid.4:1.5
--- src/share/man/man4/acpilid.4:1.4	Sun Apr 25 06:24:38 2010
+++ src/share/man/man4/acpilid.4	Sun Apr 25 07:00:50 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: acpilid.4,v 1.4 2010/04/25 06:24:38 jruoho Exp $
+.\" $NetBSD: acpilid.4,v 1.5 2010/04/25 07:00:50 jruoho Exp $
 .\"
 .\" Copyright (c) 2002, 2004 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -74,7 +74,9 @@
 
         # Suspend.
         #
-        /sbin/sysctl -w machdep.sleep_state=3
+        if /sbin/sysctl machdep.sleep_state >/dev/null 2>&1; then
+                /sbin/sysctl -w machdep.sleep_state=3
+	fi
 
         # Waking up.
         #

Reply via email to