diff --git a/prog/pwm/fancontrol b/prog/pwm/fancontrol index 243e1a8e..bfceffb6 100755 --- a/prog/pwm/fancontrol +++ b/prog/pwm/fancontrol @@ -390,6 +390,17 @@ function CheckFiles return $outdated } +if [ "$1" == "--check" ] +then + if [ -f "$2" ] + then + LoadConfig $2 + else + LoadConfig /etc/fancontrol + fi + exit 0 +fi + if [ -f "$1" ] then LoadConfig $1