13 lines
216 B
Diff
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
|
|
}
|
|
|