openwrt-packages/utils/byobu/patches/111-ensure-proc-mdstat-exis...

11 lines
197 B
Diff

--- a/usr/lib/byobu/raid
+++ b/usr/lib/byobu/raid
@@ -24,6 +24,7 @@ __raid_detail() {
}
__raid() {
+ [ -r /proc/mdstat ] || return
while read line; do
local p msg
# Errors in your raid