From effd4ee8d8dc3941761db94cdffcb36ae33cb7ce Mon Sep 17 00:00:00 2001 From: Packet Please Date: Tue, 27 Aug 2024 01:40:39 +0200 Subject: [PATCH] falter-common: can't overwrite rc.local from base-files anymore --- packages/falter-common/files/etc/init.d/rclocal | 12 ++++++++++++ packages/falter-common/files/etc/rc.local | 11 ----------- 2 files changed, 12 insertions(+), 11 deletions(-) create mode 100755 packages/falter-common/files/etc/init.d/rclocal delete mode 100755 packages/falter-common/files/etc/rc.local diff --git a/packages/falter-common/files/etc/init.d/rclocal b/packages/falter-common/files/etc/init.d/rclocal new file mode 100755 index 00000000..4ba076f4 --- /dev/null +++ b/packages/falter-common/files/etc/init.d/rclocal @@ -0,0 +1,12 @@ +#!/bin/sh /etc/rc.common + +# The "done" service calls /etc/rc.local at 95, so let's go right after +START=96 + +boot() { + [ -d /etc/rc.local.d ] && { + for file in /etc/rc.local.d/*; do + test -f "$file" && . "$file" + done + } +} diff --git a/packages/falter-common/files/etc/rc.local b/packages/falter-common/files/etc/rc.local deleted file mode 100755 index c2a11660..00000000 --- a/packages/falter-common/files/etc/rc.local +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh /etc/rc.common - -# shellcheck disable=SC1090 - -[ -d /etc/rc.local.d ] && { - for file in /etc/rc.local.d/*; do - test -f "$file" && . "$file" - done -} - -exit 0;