summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2008-12-03 23:16:33 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2008-12-05 13:44:49 -0200
commit5e5538803735ced3b7ca9428cee8bd835b63a0af (patch)
treef9d00365d14288f73f0639577af3321aa52d4591 /packages
parent5df2acaa7623a15f99433b03b4f17132d21e144b (diff)
initramfs-uniboot: split load_modules to allow the module loading to be customized
Diffstat (limited to 'packages')
-rw-r--r--packages/initrdscripts/files/init.sh12
-rw-r--r--packages/initrdscripts/initramfs-uniboot_1.0.bb2
2 files changed, 8 insertions, 6 deletions
diff --git a/packages/initrdscripts/files/init.sh b/packages/initrdscripts/files/init.sh
index cfac69b6d9..5cdbab5e0d 100644
--- a/packages/initrdscripts/files/init.sh
+++ b/packages/initrdscripts/files/init.sh
@@ -39,13 +39,15 @@ read_args() {
done
}
+load_module() {
+ # Cannot redir to $CONSOLE here easily - may not be set yet
+ echo "initramfs: Loading $module module"
+ source $1
+}
+
load_modules() {
for module in $MODULE_DIR/$1; do
- if [ -e "$module" ]; then
- # Cannot redir to $CONSOLE here easily - may not be set yet
- echo "initramfs: Loading $module module"
- source $module
- fi
+ [ -e "$module" ] && load_module $module
done
}
diff --git a/packages/initrdscripts/initramfs-uniboot_1.0.bb b/packages/initrdscripts/initramfs-uniboot_1.0.bb
index 5a042ab748..07e94f1dfc 100644
--- a/packages/initrdscripts/initramfs-uniboot_1.0.bb
+++ b/packages/initrdscripts/initramfs-uniboot_1.0.bb
@@ -1,5 +1,5 @@
SRC_URI = "file://init.sh"
-PR = "r9"
+PR = "r10"
DESCRIPTON = "A modular initramfs init script system."
RRECOMMENDS = "kernel-module-mtdblock"