From 0277bca8813afb69b72a6f18a31d90fcd5d905a7 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 9 Sep 2008 07:26:51 +0000 Subject: [PATCH] Print the revision and date at start-up. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5325 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/pwm/pwmconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prog/pwm/pwmconfig b/prog/pwm/pwmconfig index 80570c3c..36d23d18 100755 --- a/prog/pwm/pwmconfig +++ b/prog/pwm/pwmconfig @@ -1,6 +1,6 @@ #!/bin/bash # -# pwmconfig $Revision$ +# pwmconfig # Tests the pwm outputs of sensors and configures fancontrol # # Warning!!! This program will stop your fans, one at a time, @@ -28,6 +28,8 @@ # # +REVISION=$(echo '$Revision$' | cut -d' ' -f2) +REVDATE=$(echo '$Date$' | cut -d' ' -f2) PIDFILE="/var/run/fancontrol.pid" if [ -f "$PIDFILE" ] @@ -39,6 +41,7 @@ then exit 1 fi +echo "# pwmconfig revision $REVISION ($REVDATE)" echo 'This program will search your sensors for pulse width modulation (pwm)' echo 'controls, and test each one to see if it controls a fan on' echo 'your motherboard. Note that many motherboards do not have pwm'