Updated scripts
This commit is contained in:
+1
-1
@@ -2,4 +2,4 @@
|
||||
|
||||
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
-1
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
DEVICE="/dev/md0"
|
||||
DEVICE="$1"
|
||||
|
||||
TOTAL_DEVICES=$(mdadm -D "$DEVICE" | grep 'Total Devices' | cut -d':' -f 2 | tr -d ' ')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user