Browse Source

Merge pull request #5231 from pprindeville/lm-sensors-add-init.d

lm-sensors add init.d
lilik-openwrt-22.03
Jo-Philipp Wich 7 years ago
committed by GitHub
parent
commit
b663b1f65e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions
  1. +3
    -1
      utils/lm-sensors/Makefile
  2. +14
    -0
      utils/lm-sensors/files/lm-sensors.init

+ 3
- 1
utils/lm-sensors/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=lm-sensors PKG_NAME:=lm-sensors
PKG_VERSION:=3.3.5 PKG_VERSION:=3.3.5
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/groeck/lm-sensors.git PKG_SOURCE_URL:=https://github.com/groeck/lm-sensors.git
@ -101,6 +101,8 @@ ifeq ($(ARCH),i386)
$(INSTALL_DIR) $(1)/etc $(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) ./files/sensors.conf $(1)/etc/sensors.conf $(INSTALL_CONF) ./files/sensors.conf $(1)/etc/sensors.conf
endif endif
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/lm-sensors.init $(1)/etc/init.d/lm-sensors
endef endef
define Package/lm-sensors-detect/install define Package/lm-sensors-detect/install


+ 14
- 0
utils/lm-sensors/files/lm-sensors.init View 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
}

Loading…
Cancel
Save