> check_rebuild_status() { > grep -q recovery /proc/mdstat > } тогда уж сразу греп, нафиг такая функция?