From a46466893407d44dd16ab37ae70e1bee14bdde0a Mon Sep 17 00:00:00 2001 From: Gary Thomas Date: Mon, 18 Apr 2011 08:23:27 -0600 Subject: Control over when package init scripts are run When a package is built, some installation scripts must be performed on the target. In the case of a complete image, these scripts are run by a separate step at init time, but only during the first boot (other package install scripts can just be run when the package is installed on the target). This patch lets the distribution (or user) decide when these postponed install scripts should run. The default is normally near the end of init, but there may be times when it's beneficial to run them earlier so the "when" can be overridden. Signed-off-by: Gary Thomas Signed-off-by: Saul Wold --- meta/recipes-devtools/opkg/opkg.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/recipes-devtools/opkg/opkg.inc') diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc index c3174917a5..50f1afc1fe 100644 --- a/meta/recipes-devtools/opkg/opkg.inc +++ b/meta/recipes-devtools/opkg/opkg.inc @@ -34,3 +34,7 @@ BBCLASSEXTEND = "native nativesdk" PKGSUFFIX = "" PKGSUFFIX_virtclass-nativesdk = "-nativesdk" + +# Define a variable to allow distros to run configure earlier. +# (for example, to enable loading of ethernet kernel modules before networking starts) +POSTINSTALL_INITPOSITION ?= "98" -- cgit 1.2.3-korg