aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-20 13:07:55 +0300
committerCem Keylan <cem@ckyln.com>2020-05-20 13:07:55 +0300
commit2c629502b4248d266ecde461fb8773198507c6ec (patch)
treec0269e0156d3e1decc0459988c157f81de00a824
parenta64b09d741a61771bd08a944ac60419f0fb9d058 (diff)
downloadinit-2c629502b4248d266ecde461fb8773198507c6ec.tar.gz
rc.boot: read /proc/mounts only if it exists
-rwxr-xr-xrc.boot2
1 files changed, 1 insertions, 1 deletions
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