diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-20 13:07:55 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-20 13:07:55 +0300 |
commit | 2c629502b4248d266ecde461fb8773198507c6ec (patch) | |
tree | c0269e0156d3e1decc0459988c157f81de00a824 | |
parent | a64b09d741a61771bd08a944ac60419f0fb9d058 (diff) | |
download | init-2c629502b4248d266ecde461fb8773198507c6ec.tar.gz |
rc.boot: read /proc/mounts only if it exists
-rwxr-xr-x | rc.boot | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |