diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2005-09-13 21:14:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-09-13 21:14:37 +0000 |
commit | 18d316ca0c6bd7c9618abfd9f930519c4c04a611 (patch) | |
tree | e1b72be5dfebfedba79239cdd74d5d151e314dd3 /packages | |
parent | 2976a8038288fdc9d5e3fde75d26ab0c66919435 (diff) |
module-init-tools-3.2-pre7: install lsmod symlinks to both /bin and /sbin
- fixes Bug #232. additionally changed update-alternatives priority
to 60 to prefer module-init-tools binaries over busybox.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/module-init-tools/module-init-tools_3.2-pre7.bb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/module-init-tools/module-init-tools_3.2-pre7.bb b/packages/module-init-tools/module-init-tools_3.2-pre7.bb index 41aea223fe..017f288e7d 100644 --- a/packages/module-init-tools/module-init-tools_3.2-pre7.bb +++ b/packages/module-init-tools/module-init-tools_3.2-pre7.bb @@ -3,7 +3,7 @@ removing kernel modules for Linux (versions 2.5.48 and above). It serves \ the same function that the modutils package serves for Linux 2.4." LICENSE = "GPL" SECTION = "base" -PR = "r0" +PR = "r1" PACKAGES =+ "module-init-tools-insmod-static module-init-tools-depmod" RDEPENDS_${PN} += "module-init-tools-depmod" @@ -34,18 +34,22 @@ do_install() { pkg_postinst_module-init-tools() { #!/bin/sh -for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/depmod sbin/modinfo bin/lsmod; do +for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/depmod sbin/modinfo; do bn=`basename $f` update-alternatives --install /$f $bn /$f.26 20 done +update-alternatives --install /bin/lsmod bin-lsmod /bin/lsmod.26 60 +update-alternatives --install /sbin/lsmod lsmod /bin/lsmod.26 60 } pkg_prerm_module-init-tools() { #!/bin/sh -for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/depmod sbin/modinfo bin/lsmod; do +for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/depmod sbin/modinfo; do bn=`basename $f` update-alternatives --remove $bn /$f.26 done +update-alternatives --remove bin-lsmod /bin/lsmod.26 +update-alternatives --remove lsmod /bin/lsmod.26 } pkg_postinst_module-init-tools-depmod() { |