mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
lm-sensors: add init script
"sensors -s" needs to happen at boot-time so that any "set" statements in sensors.conf file can take effect. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
14
utils/lm-sensors/files/lm-sensors.init
Normal file
14
utils/lm-sensors/files/lm-sensors.init
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2017 Philip Prindeville, Redfish Solutions LLC
|
||||
|
||||
START=28
|
||||
STOP=
|
||||
|
||||
PROG=/usr/sbin/sensors
|
||||
|
||||
start() {
|
||||
[ -f /etc/sensors.conf -o -f /etc/sensors3.conf ] || return
|
||||
|
||||
$PROG -s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user