From adb634a6e8addc90b7dd3c3f433162a08dcb050f Mon Sep 17 00:00:00 2001 From: luochunsheng Date: Fri, 22 May 2020 10:13:56 +0800 Subject: [PATCH] fix lm_sensors-modprobe-r-wrapper/lm_sensors-modprobe-wrapper scripts --- lm_sensors-modprobe-r-wrapper | 2 +- lm_sensors-modprobe-wrapper | 2 +- lm_sensors.spec | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lm_sensors-modprobe-r-wrapper b/lm_sensors-modprobe-r-wrapper index 09e749f..f4ce4a5 100644 --- a/lm_sensors-modprobe-r-wrapper +++ b/lm_sensors-modprobe-r-wrapper @@ -2,7 +2,7 @@ if [ $# -ne 0 ]; then /usr/sbin/modprobe -abr "$@" else - if [ `/usr/bin/sensors -s` ]; then + if ! /usr/bin/sensors -s &> /dev/null ; then echo "No sensors with loadable kernel modules configured." echo "Please, run 'sensors-detect' as root in order to search for available sensors." exit 1 diff --git a/lm_sensors-modprobe-wrapper b/lm_sensors-modprobe-wrapper index 4320673..32e8b7e 100644 --- a/lm_sensors-modprobe-wrapper +++ b/lm_sensors-modprobe-wrapper @@ -2,7 +2,7 @@ if [ $# -ne 0 ]; then /usr/sbin/modprobe -ab "$@" else - if [ `/usr/bin/sensors -s` ]; then + if ! /usr/bin/sensors -s &> /dev/null ; then echo "No sensors with loadable kernel modules configured." echo "Please, run 'sensors-detect' as root in order to search for available sensors." exit 1 diff --git a/lm_sensors.spec b/lm_sensors.spec index 9c20a16..ea6322f 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -2,7 +2,7 @@ Name: lm_sensors Version: 3.6.0 -Release: 1 +Release: 2 Summary: Linux-monitoring sensors # lib/libsensors.3 is licensed Verbatim # dist-git files are licensed MIT @@ -166,6 +166,9 @@ fi %exclude %{_mandir}/man8/sensord.8.gz %changelog +* Fri May 22 2020 Chunsheng Luo - 3.6.0-2 +- fix lm_sensors-modprobe-r-wrapper/lm_sensors-modprobe-wrapper scripts + * Thu May 21 2020 Chunsheng Luo - 3.6.0-1 - update to version 3.6.0