diff options
| author | Oyvind Repvik <nail@nslu2-linux.org> | 2006-02-05 01:01:54 +0000 |
|---|---|---|
| committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-02-05 01:01:54 +0000 |
| commit | a1e5ad6c67eaaf22b6223f3f3c2633177d77f4da (patch) | |
| tree | edf3a86d536491c46247a95e76c1910de359e9ae /packages/update-modules | |
| parent | 0c89a054a6e3279f935d0fd1b1a29d5da3b2089d (diff) | |
| parent | f5c58cb11d713fe6fabccc5265ba461600b0971c (diff) | |
merge of 253b3416d6485c95aa1653ae4d5b49a707d9fbe6
and 9b98e6390444bf96f5e5fa74d89ff83c0083a833
Diffstat (limited to 'packages/update-modules')
| -rwxr-xr-x | packages/update-modules/update-modules-1.0/update-modules | 11 | ||||
| -rw-r--r-- | packages/update-modules/update-modules_1.0.bb | 3 |
2 files changed, 11 insertions, 3 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 diff --git a/packages/update-modules/update-modules_1.0.bb b/packages/update-modules/update-modules_1.0.bb index 297b1bf7b0..dc4c3c0d92 100644 --- a/packages/update-modules/update-modules_1.0.bb +++ b/packages/update-modules/update-modules_1.0.bb @@ -2,7 +2,7 @@ SECTION = "base" DESCRIPTION = "Script to manage module configuration files" LICENSE = "GPLv2" PACKAGE_ARCH = "all" -PR = "r3" +PR = "r4" SRC_URI = "file://update-modules" @@ -11,7 +11,6 @@ if [ "x$D" != "x" ]; then exit 1 fi update-modules -/etc/init.d/modutils.sh } do_install() { |
