mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
Deal with relative paths for the config file.
This commit is contained in:
1 parent
42f240d2a4
commit
5e2e1fff53
1 file changed
+5
@@ -31,6 +31,7 @@
|
||||
|
||||
LM_VERSION='3.6.0+git'
|
||||
PIDFILE="/var/run/fancontrol.pid"
|
||||
USERDIR=$(pwd)
|
||||
|
||||
if [ -f "$PIDFILE" ]
|
||||
then
|
||||
@@ -614,6 +615,10 @@ function AskPath()
|
||||
then
|
||||
FCCONFIG="/etc/fancontrol"
|
||||
fi
|
||||
if [ ${FCCONFIG::1} != "/" ]
|
||||
then
|
||||
FCCONFIG=$(readlink -f $USERDIR/$FCCONFIG)
|
||||
fi
|
||||
}
|
||||
|
||||
AskPath
|
||||
|
||||
Reference in new issue
Block a user