armbian-build/packages/bsp/helios4/fancontrol.patch
2018-01-07 09:58:52 +01:00

13 lines
216 B
Diff

@@ -157,9 +157,9 @@
function DevicePath()
{
- if [ -h "$1/device" ]
+ if [ -h "$1" ]
then
- readlink -f "$1/device" | sed -e 's/^\/sys\///'
+ readlink -f "$1" | sed -e 's/^\/sys\///;s/\/hwmon\/.*//'
fi
}