enigma2-autofs: initial recipe for autofs5 configuration files
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-autofs_1.0.bb
1 SUMMARY = "autofs configuration for enigma2"
2 LICENSE = "CLOSED"
3
4 SRC_URI = "file://enigma2.autofs \
5            file://auto.hotplug \
6            file://auto.network"
7
8 inherit allarch
9
10 do_install() {
11     install -d ${D}${sysconfdir}
12     install -m644 ${WORKDIR}/auto.* ${D}${sysconfdir}
13     install -d ${D}${sysconfdir}/auto.master.d
14     install -m644 ${WORKDIR}/enigma2.autofs ${D}${sysconfdir}/auto.master.d
15 }
16
17 CONFFILES_${PN} = "${sysconfdir}/auto.network"
18
19 pkg-postinst_${PN}() {
20 if [ -z "$D" ]; then
21     pid=`pidof automount`
22     if [ -n "$pid" ]; then
23         kill -HUP $pid
24     fi
25 fi
26 }
27 pkg-postrm_${PN}() {
28 if [ -z "$D" ]; then
29     pid=`pidof automount`
30     if [ -n "$pid" ]; then
31         kill -HUP $pid
32     fi
33 fi
34 }