From fc0e1adaec9e4c85c86ab17ce4e6945226a25a73 Mon Sep 17 00:00:00 2001 From: Francesco Minnocci Date: Thu, 7 Jul 2022 00:31:32 +0200 Subject: [PATCH] chore: cosmetic changes in scripts --- scripts/disk-usage | 2 +- scripts/example-raid-status | 7 ++++--- scripts/raid-status | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/disk-usage b/scripts/disk-usage index 9cfd46b..1af78a4 100755 --- a/scripts/disk-usage +++ b/scripts/disk-usage @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh DEVICE="$1" diff --git a/scripts/example-raid-status b/scripts/example-raid-status index 146c68c..74fd9cd 100755 --- a/scripts/example-raid-status +++ b/scripts/example-raid-status @@ -1,7 +1,8 @@ -#!/bin/bash +#!/bin/sh echo 'active' echo 'active' echo 'active' -echo 'failing' -echo 'missing' \ No newline at end of file +echo 'failed' +echo 'missing' +echo 'spare' diff --git a/scripts/raid-status b/scripts/raid-status index 08845fc..bd0f4c4 100755 --- a/scripts/raid-status +++ b/scripts/raid-status @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh DEVICE="/dev/md0" @@ -15,4 +15,4 @@ mdadm -D "$DEVICE" | tail -n "$TOTAL_DEVICES" | tr -s ' ' | cut -d' ' -f 6 # active # -# TODO: Non ho realmente trovato nella documentazione le altre parole, penso siano "missing" e "failing" perĂ² boh \ No newline at end of file +# Da https://linux.die.net/man/8/mdadm pare che gli output sensati siano "missing", "failed", "spare" ed "active".