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:
parent
931233d003
commit
9534ff7dc0
1 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,10 @@
|
||||||
#%# family=auto
|
#%# family=auto
|
||||||
#%# capabilities=autoconf suggest
|
#%# 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
|
case $1 in
|
||||||
config)
|
config)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue