extrahd: fix detection of md-raid without reboot.
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 22 Apr 2011 12:26:51 +0000 (14:26 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 22 Apr 2011 12:26:51 +0000 (14:26 +0200)
src/scripts/scanhd

index 7de68fb..ee946b7 100644 (file)
@@ -3,7 +3,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/md ]; then
+               if [ -e /dev/.mdadm ]; then
                        echo 'md;"MDADM software-raid";' >> /var/ipfire/extrahd/scan
                fi
                if [ -e /dev/mmcblk0 ]; then