diff options
| author | Richard Purdie <richard@openedhand.com> | 2006-05-09 18:38:19 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2006-05-09 18:38:19 +0000 |
| commit | b4cb437c6595ff8ac13506e502fe04b1a60c4e04 (patch) | |
| tree | f529de217094f1a49049f90c49d779a49e19cd7c /openembedded/packages/update-modules | |
| parent | 3baacb49c13a48798d45e30a0a0076ca0b8c9e6a (diff) | |
| download | poky-b4cb437c6595ff8ac13506e502fe04b1a60c4e04.tar.gz | |
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')
| -rwxr-xr-x | openembedded/packages/update-modules/update-modules-1.0/update-modules | 11 | ||||
| -rw-r--r-- | openembedded/packages/update-modules/update-modules_1.0.bb | 3 |
2 files changed, 11 insertions, 3 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 2f817c5ee1..636fe1c0d4 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 | |||
| 173 | fi | 173 | fi |
| 174 | done | 174 | done |
| 175 | 175 | ||
| 176 | first_time=0 | ||
| 177 | if [ ! -f $MODULESFILE ]; then | ||
| 178 | first_time=1 | ||
| 179 | fi | ||
| 180 | |||
| 176 | mv "$MODCONFTMPFILE" "$MODCONFFILE" | 181 | mv "$MODCONFTMPFILE" "$MODCONFFILE" |
| 177 | mv "$MODULESTMPFILE" "$MODULESFILE" | 182 | mv "$MODULESTMPFILE" "$MODULESFILE" |
| 178 | 183 | ||
| 184 | if [ $first_time -eq 1 ]; then | ||
| 185 | /etc/init.d/modutils.sh || true | ||
| 186 | fi | ||
| 187 | |||
| 179 | # We also call depmod here to stop insmod from complaining that modules.conf | 188 | # We also call depmod here to stop insmod from complaining that modules.conf |
| 180 | # is more recent then modules.dep | 189 | # is more recent then modules.dep |
| 181 | # | 190 | # |
| 182 | if [ -d "`depdir`" -a -f /proc/modules ] | 191 | if [ -d "`depdir`" -a -f /proc/modules ] |
| 183 | then | 192 | then |
| 184 | depmod -a || true | 193 | depmod -A || true |
| 185 | fi | 194 | fi |
| 186 | 195 | ||
| 187 | exit 0 | 196 | exit 0 |
diff --git a/openembedded/packages/update-modules/update-modules_1.0.bb b/openembedded/packages/update-modules/update-modules_1.0.bb index 297b1bf7b0..dc4c3c0d92 100644 --- a/openembedded/packages/update-modules/update-modules_1.0.bb +++ b/openembedded/packages/update-modules/update-modules_1.0.bb | |||
| @@ -2,7 +2,7 @@ SECTION = "base" | |||
| 2 | DESCRIPTION = "Script to manage module configuration files" | 2 | DESCRIPTION = "Script to manage module configuration files" |
| 3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
| 4 | PACKAGE_ARCH = "all" | 4 | PACKAGE_ARCH = "all" |
| 5 | PR = "r3" | 5 | PR = "r4" |
| 6 | 6 | ||
| 7 | SRC_URI = "file://update-modules" | 7 | SRC_URI = "file://update-modules" |
| 8 | 8 | ||
| @@ -11,7 +11,6 @@ if [ "x$D" != "x" ]; then | |||
| 11 | exit 1 | 11 | exit 1 |
| 12 | fi | 12 | fi |
| 13 | update-modules | 13 | update-modules |
| 14 | /etc/init.d/modutils.sh | ||
| 15 | } | 14 | } |
| 16 | 15 | ||
| 17 | do_install() { | 16 | do_install() { |
