dreambox-dvb-modules: add depmod calls to postinst scripts
[opendreambox.git] / meta-dreambox / recipes-bsp / dreambox-bootlogo / dreambox-bootlogo.inc
1 SUMMARY = "Bootlogo support"
2 SECTION = "base"
3 LICENSE = "CLOSED"
4 PRIORITY = "required"
5
6 inherit opendreambox-precompiled-binary opendreambox-sysvinit
7
8 PRECOMPILED_ARCH = "${@d.getVar('PV', True).split('-')[1]}"
9 PRECOMPILED_VERSION = "${@d.getVar('PV', True).split('-')[0]}"
10
11 PACKAGES += "${PN}-data"
12
13 PACKAGE_ARCH := "${MACHINE_ARCH}"
14
15 RDEPENDS_${PN} = "${PN}-data"
16
17 FILES_${PN} = "/boot/bootlogo.elf.gz"
18 FILES_${PN}-data = "/boot/bootlogo.jpg ${datadir} ${sysconfdir}"
19
20 pkg_preinst_${PN}() {
21         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,rw /boot; fi
22 }
23 pkg_prerm_${PN}() {
24         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,rw /boot; fi
25 }
26 pkg_postinst_${PN}() {
27         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,ro /boot; fi
28 }
29 pkg_postrm_${PN}() {
30         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,ro /boot; fi
31 }
32
33 pkg_preinst_${PN}-data() {
34         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,rw /boot; fi
35 }
36 pkg_prerm_${PN}-data() {
37         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,rw /boot; fi
38 }
39 pkg_postinst_${PN}-data() {
40         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,ro /boot; fi
41 }
42 pkg_postrm_${PN}-data() {
43         if [ -z "$D" ] && mountpoint -q /boot; then mount -o remount,ro /boot; fi
44 }
45
46 INITSCRIPT_PARAMS = "start 3 S . stop 89 0 ."