aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrc.boot4
-rwxr-xr-xrc.shutdown2
2 files changed, 3 insertions, 3 deletions
diff --git a/rc.boot b/rc.boot
index 3a59a79..507a3d9 100755
--- a/rc.boot
+++ b/rc.boot
@@ -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
diff --git a/rc.shutdown b/rc.shutdown
index 7f99c4c..82aaff4 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -1,8 +1,8 @@
#!/bin/sh
# shellcheck disable=1090,1091
-. /etc/init/rc.conf
. /usr/lib/init/rc.lib
+[ -f /etc/init/rc.conf ] && . /etc/init/rc.conf
run_hook pre.shutdown