opnsense-ports/sysutils/byobu/files/patch-usr_lib_byobu_raid
Franco Fichtner da40f9760e */*: sync with upstream
Taken from: HardenedBSD
2018-06-17 14:42:30 +02:00

20 lines
587 B
Text

--- usr/lib/byobu/raid.orig 2016-04-07 22:05:52 UTC
+++ usr/lib/byobu/raid
@@ -20,7 +20,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
__raid_detail() {
- [ -r /proc/mdstat ] && cat /proc/mdstat || true
+ [ -r /compat/linux/proc/mdstat ] && cat /compat/linux/proc/mdstat || true
}
__raid() {
@@ -37,7 +37,7 @@ __raid() {
msg="$msg,$p"
;;
esac
- done < /proc/mdstat
+ done < /compat/linux/proc/mdstat
if [ -n "$msg" ]; then
color B w r; printf "%s" "$msg"; color --
elif [ -e "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/raid" ]; then