summaryrefslogtreecommitdiff
path: root/openembedded/packages/update-modules/update-modules-1.0
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-05-09 18:38:19 +0000
committerRichard Purdie <richard@openedhand.com>2006-05-09 18:38:19 +0000
commitb4cb437c6595ff8ac13506e502fe04b1a60c4e04 (patch)
treef529de217094f1a49049f90c49d779a49e19cd7c /openembedded/packages/update-modules/update-modules-1.0
parent3baacb49c13a48798d45e30a0a0076ca0b8c9e6a (diff)
downloadopenembedded-core-b4cb437c6595ff8ac13506e502fe04b1a60c4e04.tar.gz
openembedded-core-b4cb437c6595ff8ac13506e502fe04b1a60c4e04.tar.bz2
openembedded-core-b4cb437c6595ff8ac13506e502fe04b1a60c4e04.tar.xz
openembedded-core-b4cb437c6595ff8ac13506e502fe04b1a60c4e04.zip
Merge packages changes from OE into poky.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@386 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/update-modules/update-modules-1.0')
-rwxr-xr-xopenembedded/packages/update-modules/update-modules-1.0/update-modules11
1 files changed, 10 insertions, 1 deletions
diff --git a/openembedded/packages/update-modules/update-modules-1.0/update-modules b/openembedded/packages/update-modules/update-modules-1.0/update-modules
index 2f817c5ee..636fe1c0d 100755
--- a/openembedded/packages/update-modules/update-modules-1.0/update-modules
+++ b/openembedded/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