diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2006-02-04 21:02:13 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-02-04 21:02:13 +0000 |
commit | db1858f5da65f2267784855e4887b99a06a7172b (patch) | |
tree | d76212217b1c9f8cadfb30d50025e5e01218ba4c /packages/update-modules/update-modules-1.0 | |
parent | 7805751cc52097d34a0290392783181f01d8dbec (diff) |
update-modules: fix module loading during first boot
- Phil's patch from http://www.handhelds.org/hypermail/oe/current/6167.html
- this also works when ipkg intercepts update-modules in postinst.
Diffstat (limited to 'packages/update-modules/update-modules-1.0')
-rwxr-xr-x | packages/update-modules/update-modules-1.0/update-modules | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/update-modules/update-modules-1.0/update-modules b/packages/update-modules/update-modules-1.0/update-modules index 2f817c5ee1..636fe1c0d4 100755 --- a/packages/update-modules/update-modules-1.0/update-modules +++ b/packages/update-modules/update-modules-1.0/update-modules @@ -173,15 +173,24 @@ for cfg in /etc/modutils/* $CONF ; do fi done +first_time=0 +if [ ! -f $MODULESFILE ]; then + first_time=1 +fi + mv "$MODCONFTMPFILE" "$MODCONFFILE" mv "$MODULESTMPFILE" "$MODULESFILE" +if [ $first_time -eq 1 ]; then + /etc/init.d/modutils.sh || true +fi + # We also call depmod here to stop insmod from complaining that modules.conf # is more recent then modules.dep # if [ -d "`depdir`" -a -f /proc/modules ] then - depmod -a || true + depmod -A || true fi exit 0 |