aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot2
-rwxr-xr-xpackage/base-files/files/etc/preinit1
2 files changed, 3 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index b44c1a69fe..d210fdcbaa 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -5,6 +5,8 @@ START=10
STOP=98
uci_apply_defaults() {
+ . /lib/functions/system.sh
+
cd /etc/uci-defaults || return 0
files="$(ls)"
[ -z "$files" ] && return 0
diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit
index a8662eaf1d..9cc8a9a8f6 100755
--- a/package/base-files/files/etc/preinit
+++ b/package/base-files/files/etc/preinit
@@ -25,6 +25,7 @@ pi_init_cmd="/sbin/init"
. /lib/functions.sh
. /lib/functions/preinit.sh
+. /lib/functions/system.sh
boot_hook_init preinit_essential
boot_hook_init preinit_main