aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-24 09:07:39 +0300
committerCem Keylan <cem@ckyln.com>2020-01-24 09:07:39 +0300
commit4895c4cc0518339d45ccf1d6e9843a2ff9f9ff32 (patch)
treeb0e5d6070ebe3dff5c07b8875ab9ba3c5f181cd8
parentc46107cb12306aaa81a0a6b363f8f01c9d469ddb (diff)
downloadinit-4895c4cc0518339d45ccf1d6e9843a2ff9f9ff32.tar.gz
run rc.local before other boot-hooks
-rwxr-xr-xrc.boot12
1 files changed, 6 insertions, 6 deletions
diff --git a/rc.boot b/rc.boot
index 9078b4e..7b5f8e3 100755
--- a/rc.boot
+++ b/rc.boot
@@ -159,6 +159,12 @@ command -v udevd >/dev/null &&
udevadm control --exit
+out "Running /etc/init/rc.local..."; {
+ [ -r "/etc/init/rc.local" ] && \
+ . /etc/init/rc.local
+}
+
+
out "Running boot hooks..."
set +f
for file in /etc/init/*.boot ; do
@@ -166,10 +172,4 @@ for file in /etc/init/*.boot ; do
out "Running $file" && . "$file"
done
-out "Running /etc/init/rc.local..."; {
- [ -r "/etc/init/rc.local" ] && \
- . /etc/init/rc.local
-}
-
-
out "Boot stage complete..."