summaryrefslogtreecommitdiff
path: root/packages/initrdscripts/files
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2009-02-20 20:35:58 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2009-02-23 14:28:14 -0300
commit0b7903ed229c1bb2fe93e4253c7dfdeb19f660b2 (patch)
tree502fde0dd1546884ccf5c5e7743319cdb2692a8d /packages/initrdscripts/files
parent83ab7056b38ea95541629897a1077651a64a0068 (diff)
initramfs-uniboot: call depmod if the image lack a dep file
Diffstat (limited to 'packages/initrdscripts/files')
-rw-r--r--packages/initrdscripts/files/init.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/initrdscripts/files/init.sh b/packages/initrdscripts/files/init.sh
index 65fef262b6..221b8f56b9 100644
--- a/packages/initrdscripts/files/init.sh
+++ b/packages/initrdscripts/files/init.sh
@@ -41,6 +41,10 @@ read_args() {
done
}
+do_depmod() {
+ [ -e "/lib/modules/$(uname -r)/modules.dep" ] || depmod
+}
+
load_module() {
# Cannot redir to $CONSOLE here easily - may not be set yet
echo "initramfs: Loading $module module"
@@ -68,6 +72,7 @@ fatal() {
echo "Starting initramfs boot..."
early_setup
load_modules '0*'
+do_depmod
[ -z "$CONSOLE" ] && CONSOLE="/dev/console"