From 2c629502b4248d266ecde461fb8773198507c6ec Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 20 May 2020 13:07:55 +0300 Subject: rc.boot: read /proc/mounts only if it exists --- rc.boot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.boot b/rc.boot index 7d12a78..24f3a4d 100755 --- a/rc.boot +++ b/rc.boot @@ -7,7 +7,7 @@ . /usr/lib/init/rc.lib mnt() { - while read -r _ mnt _; do + [ -f /proc/mounts ] && while read -r _ mnt _; do case "$mnt" in "$1") return 0; esac done < /proc/mounts -- cgit v1.2.3