mdadm: add cgi to display the md-state.

This commit is contained in:
Arne Fitzenreiter
2011-04-22 17:03:23 +02:00
parent e3f28dd56f
commit 339dbffc70
6 changed files with 60 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ case "$1" in
ide)
/sbin/kudzu -qps -c HD | egrep "desc|device:" | awk -F': ' '{print $2}' | sed -e '/"$/a\\' -e "s/$/\;/g" | tr "\n" "XX" | sed -e "s/XX/\n/g" -e "s/\;X/\;/g" | grep '^"' -v > /var/ipfire/extrahd/scan
if [ -e /dev/.mdadm ]; then
echo 'md;"MDADM software-raid";' >> /var/ipfire/extrahd/scan
echo 'md;"MD Software-Raid";' >> /var/ipfire/extrahd/scan
fi
if [ -e /dev/mmcblk0 ]; then
echo 'mmcblk0;"MMC/SD Cardreader";' >> /var/ipfire/extrahd/scan