Index: laptop-mode-tools_1.52/usr/sbin/laptop_mode |
diff --git a/laptop-mode-tools_1.52/usr/sbin/laptop_mode b/laptop-mode-tools_1.52/usr/sbin/laptop_mode |
index f4a4004e6a91a531acb3bf80cce9ef27caf4cea5..07fe87b183b4fb354a03b653a845ed449a94a881 100755 |
--- a/laptop-mode-tools_1.52/usr/sbin/laptop_mode |
+++ b/laptop-mode-tools_1.52/usr/sbin/laptop_mode |
@@ -160,7 +160,9 @@ if [ x$LOG_TO_SYSLOG = x1 ]; then |
elif [ "$1" = "ERR" ]; then |
logger -p $SYSLOG_FACILITY.err -t laptop-mode "$2"; |
elif [ "$1" = "VERBOSE" ]; then |
- logger -p $SYSLOG_FACILITY.debug -t laptop-mode "$2"; |
+ if [ "$DEBUG" = 1 ]; then |
+ logger -p $SYSLOG_FACILITY.debug -t laptop-mode "$2"; |
+ fi |
else |
logger -p $SYSLOG_FACILITY.notice -t laptop-mode "$2"; |
fi |