diff options
Diffstat (limited to 'files/common/openwrt/sensors-init.lua')
-rwxr-xr-x | files/common/openwrt/sensors-init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/common/openwrt/sensors-init.lua b/files/common/openwrt/sensors-init.lua index a283bfc7..5e2cd0ee 100755 --- a/files/common/openwrt/sensors-init.lua +++ b/files/common/openwrt/sensors-init.lua @@ -6,5 +6,5 @@ local config, err = sensors.read_config('/etc/sensors.json') if not config then error(err) end local num_sensors, err = sensors.setup(config) -if not num_sensors then error(err) end +if num_sensors == nil then error(err) end print(string.format("successfully initialized %d sensor(s)", num_sensors)) |