diff options
Diffstat (limited to 'meta/recipes-kernel/module-init-tools/module-init-tools_3.16.bb')
-rw-r--r-- | meta/recipes-kernel/module-init-tools/module-init-tools_3.16.bb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-kernel/module-init-tools/module-init-tools_3.16.bb b/meta/recipes-kernel/module-init-tools/module-init-tools_3.16.bb new file mode 100644 index 0000000000..0248b464c1 --- /dev/null +++ b/meta/recipes-kernel/module-init-tools/module-init-tools_3.16.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | require module-init-tools.inc | ||
2 | PR = "r0" | ||
3 | |||
4 | # autotools set prefix to /usr, however we want them in /bin and /sbin | ||
5 | bindir = "/bin" | ||
6 | sbindir = "/sbin" | ||
7 | |||
8 | do_install() { | ||
9 | autotools_do_install | ||
10 | for f in bin/lsmod sbin/insmod sbin/rmmod sbin/modprobe sbin/modinfo sbin/depmod; do | ||
11 | mv ${D}/$f ${D}/$f.26 | ||
12 | done | ||
13 | } | ||
14 | |||
15 | pkg_postinst_module-init-tools() { | ||
16 | for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/modinfo; do | ||
17 | bn=`basename $f` | ||
18 | update-alternatives --install /$f $bn /$f.26 60 | ||
19 | done | ||
20 | update-alternatives --install /bin/lsmod bin-lsmod /bin/lsmod.26 60 | ||
21 | update-alternatives --install /sbin/lsmod lsmod /bin/lsmod.26 60 | ||
22 | } | ||
23 | |||
24 | pkg_prerm_module-init-tools() { | ||
25 | for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/modinfo; do | ||
26 | bn=`basename $f` | ||
27 | update-alternatives --remove $bn /$f.26 | ||
28 | done | ||
29 | update-alternatives --remove bin-lsmod /bin/lsmod.26 | ||
30 | update-alternatives --remove lsmod /bin/lsmod.26 | ||
31 | } | ||
32 | |||
33 | pkg_postinst_module-init-tools-depmod() { | ||
34 | update-alternatives --install /sbin/depmod depmod /sbin/depmod.26 60 | ||
35 | } | ||
36 | |||
37 | pkg_prerm_module-init-tools-depmod() { | ||
38 | update-alternatives --remove depmod /sbin/depmod.26 | ||
39 | } | ||
40 | |||
41 | SRC_URI[md5sum] = "bc44832c6e41707b8447e2847d2019f5" | ||
42 | SRC_URI[sha256sum] = "e1f2cdcae64a8effc25e545a5e0bdaf312f816ebbcd0916e4e87450755fab64b" | ||