1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Update powered_up_

add optional use of "/dev/disk/by-id"
This commit is contained in:
lr1980 2014-08-02 22:59:19 +02:00
parent 931233d003
commit 9534ff7dc0

View file

@ -2,7 +2,10 @@
#%# family=auto
#%# capabilities=autoconf suggest
device=`echo $0 | cut -d _ -f 3`
device=`basename $0 | sed 's/^powered_up_//g'`
if [ ! -e /dev/$device ]; then
device="disk/by-id/$device"
fi
case $1 in
config)