Updated scripts

main
Antonio De Lucreziis 2 years ago
parent 9f36be7c8f
commit e1df9c938c

@ -2,4 +2,4 @@
DEVICE="$1" DEVICE="$1"
df | grep "$DEVICE" | tr -s ' ' | cut -d' ' -f 2-3 | tr ' ' '\n' df "$DEVICE" | tail -n 1 | tr -s ' ' | cut -d' ' -f 2-3 | tr ' ' '\n'

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
DEVICE="/dev/md0" DEVICE="$1"
TOTAL_DEVICES=$(mdadm -D "$DEVICE" | grep 'Total Devices' | cut -d':' -f 2 | tr -d ' ') TOTAL_DEVICES=$(mdadm -D "$DEVICE" | grep 'Total Devices' | cut -d':' -f 2 | tr -d ' ')

Loading…
Cancel
Save