From 4895c4cc0518339d45ccf1d6e9843a2ff9f9ff32 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Fri, 24 Jan 2020 09:07:39 +0300 Subject: run rc.local before other boot-hooks --- rc.boot | 12 ++++++------ 1 file 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..." -- cgit v1.2.3