chore: cosmetic changes in scripts
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
DEVICE="$1"
|
DEVICE="$1"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
echo 'active'
|
echo 'active'
|
||||||
echo 'active'
|
echo 'active'
|
||||||
echo 'active'
|
echo 'active'
|
||||||
echo 'failing'
|
echo 'failed'
|
||||||
echo 'missing'
|
echo 'missing'
|
||||||
|
echo 'spare'
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
DEVICE="/dev/md0"
|
DEVICE="/dev/md0"
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ mdadm -D "$DEVICE" | tail -n "$TOTAL_DEVICES" | tr -s ' ' | cut -d' ' -f 6
|
|||||||
# active
|
# active
|
||||||
#
|
#
|
||||||
|
|
||||||
# TODO: Non ho realmente trovato nella documentazione le altre parole, penso siano "missing" e "failing" però boh
|
# Da https://linux.die.net/man/8/mdadm pare che gli output sensati siano "missing", "failed", "spare" ed "active".
|
||||||
|
|||||||
Reference in New Issue
Block a user