check_rebuild_status(){
        if [ $(grep "recovery" /proc/mdstat -c) -ne 0  ]; then
                return 0
        else
                return 1
        fi
}

Чтобы было более элегантно.

--
--
Best regards,

Vladimir Skubriev


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Ответить