Updated scripts

This commit is contained in:
2022-07-07 16:25:30 +02:00
parent 9f36be7c8f
commit e1df9c938c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -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 ' ')