"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>
PKG_NAME:=lm-sensors
PKG_VERSION:=3.3.5
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/groeck/lm-sensors.git
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) ./files/sensors.conf $(1)/etc/sensors.conf
endif
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/lm-sensors.init $(1)/etc/init.d/lm-sensors
endef
define Package/lm-sensors-detect/install
--- /dev/null
+#!/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
+}
+