diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-21 12:17:01 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-21 12:17:01 +0300 |
commit | fa01e03fe155293a91ef95add7fd9768b89ee577 (patch) | |
tree | b3f1fdf86ad99ba20736566a29e2b84df825e1fb /rc.boot | |
parent | acb5e294a100c1d33d8731d90e836a791254a081 (diff) | |
download | init-fa01e03fe155293a91ef95add7fd9768b89ee577.tar.gz |
init: read rc.conf only if it exists
Diffstat (limited to 'rc.boot')
-rwxr-xr-x | rc.boot | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,10 +1,10 @@ #!/bin/sh # shellcheck disable=1090,1091,2174 -# Read the configuration file and the library fo +# Read the configuration file and the library of # common functions. -. /etc/init/rc.conf . /usr/lib/init/rc.lib +[ -f /etc/init/rc.conf ] && . /etc/init/rc.conf mnt() { [ -f /proc/mounts ] && while read -r _ mnt _; do |