summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init9
1 files changed, 7 insertions, 2 deletions
diff --git a/init b/init
index 3c852d9..44c10b0 100644
--- a/init
+++ b/init
@@ -26,10 +26,11 @@ for d in ${disablehooks//,/ }; do
[ -e "/hooks/$d" ] && chmod 644 "/hooks/$d"
done
-[ -n "${earlymodules//[[:space:]]}" ] && modprobe -qab ${earlymodules//,/ }
-
. /config
+run_hookfunctions 'run_earlyhook' 'early hook' $EARLYHOOKS
+
+[ -n "${earlymodules//[[:space:]]}" ] && modprobe -qab ${earlymodules//,/ }
[ -n "${MODULES//[[:space:]]}" ] && modprobe -qab $MODULES
# If rootdelay is empty or not a non-negative integer, set it to 10
@@ -71,6 +72,10 @@ elif [ ! -x "/new_root${init}" ]; then
launch_interactive_shell --exec
fi
+run_hookfunctions 'run_latehook' 'late hook' $LATEHOOKS
+
+run_hookfunctions 'run_cleanuphook' 'cleanup hook' $CLEANUPHOOKS
+
# mount /usr if it exists
realtab=/new_root/etc/fstab
if [ -f "$realtab" ]; then