Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Unified Diff: laptop-mode-tools_1.52/usr/sbin/laptop_mode

Issue 1638015: add laptop-mode-tools config knob to control syslog facility (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « laptop-mode-tools_1.52/etc/laptop-mode/laptop-mode.conf ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2b531ab46d949184ef696a5f39edcbe3d7369c01..f4a4004e6a91a531acb3bf80cce9ef27caf4cea5 100755
--- a/laptop-mode-tools_1.52/usr/sbin/laptop_mode
+++ b/laptop-mode-tools_1.52/usr/sbin/laptop_mode
@@ -127,6 +127,7 @@ BATT_BRIGHTNESS_COMMAND=false
LM_AC_BRIGHTNESS_COMMAND=false
NOLM_AC_BRIGHTNESS_COMMAND=false
LOG_TO_SYSLOG=1
+SYSLOG_FACILITY=daemon
DEBUG=0
checkint ()
@@ -155,13 +156,13 @@ if [ x$LOG_TO_SYSLOG = x1 ]; then
# continue
#elif [ "$1" = "MSG" ]; then
if [ "$1" = "MSG" ]; then
- logger -p daemon.info -t laptop-mode "$2";
+ logger -p $SYSLOG_FACILITY.info -t laptop-mode "$2";
elif [ "$1" = "ERR" ]; then
- logger -p daemon.err -t laptop-mode "$2";
+ logger -p $SYSLOG_FACILITY.err -t laptop-mode "$2";
elif [ "$1" = "VERBOSE" ]; then
- logger -p daemon.debug -t laptop-mode "$2";
+ logger -p $SYSLOG_FACILITY.debug -t laptop-mode "$2";
else
- logger -p daemon.notice -t laptop-mode "$2";
+ logger -p $SYSLOG_FACILITY.notice -t laptop-mode "$2";
fi
fi
fi
« no previous file with comments | « laptop-mode-tools_1.52/etc/laptop-mode/laptop-mode.conf ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698