Deal with relative paths for the config file.

This commit is contained in:
Michal Pomorski committed 2022-02-10 02:20:03 +01:00
1 parent 42f240d2a4
commit 5e2e1fff53
1 file changed
+5
+5
View File
@@ -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