Unraid-SlackPack/source/freeipmi/usr/sbin/ipmimonitoring

27 lines
406 B
Plaintext
Raw Normal View History

2016-03-24 20:02:30 +00:00
#!/bin/sh
options="--output-sensor-state"
verboseset=0
while test $# != 0
do
case "$1" in
--legacy-output)
options="$options --ipmimonitoring-legacy-output"
;;
-v)
verboseset=1
;;
*)
options="$options $1"
;;
esac
shift
done
if [ "$verboseset" = "0" ]; then
options="$options --ignore-not-available-sensors"
fi
exec /usr/sbin/ipmi-sensors $options