aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-24 09:16:17 +0300
committerCem Keylan <cem@ckyln.com>2020-01-24 09:16:17 +0300
commit60cd88ca45ef0e70e0183b5a225e9847a7d5d2fe (patch)
tree58657793762e60544ff1f5929ad1525f7135109a
parent917a427e40b3c21783ae6aed73117a22bd61cfc0 (diff)
downloadinit-60cd88ca45ef0e70e0183b5a225e9847a7d5d2fe.tar.gz
Ensure rc.conf is readable
-rwxr-xr-xrc.boot2
-rwxr-xr-xrc.shutdown2
2 files changed, 2 insertions, 2 deletions
diff --git a/rc.boot b/rc.boot
index a11b8be..2910e30 100755
--- a/rc.boot
+++ b/rc.boot
@@ -1,6 +1,6 @@
#!/bin/sh
-. /etc/init/rc.conf
+[ -r /etc/init/rc.conf ] && . /etc/init/rc.conf
. INITDIR/rc.lib
diff --git a/rc.shutdown b/rc.shutdown
index 7caa853..aac5f9d 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -1,6 +1,6 @@
#!/bin/sh
-. /etc/init/rc.conf
+[ -r /etc/init/rc.conf ] && . /etc/init/rc.conf
. INITDIR/rc.lib
PATH=/sbin:/bin:/usr/sbin:/usr/bin