enigma2-plugin-systemplugins-networkbrowser: new recipe
[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 S = "${WORKDIR}"
9
10 inherit allarch
11
12 do_install() {
13     install -d ${D}${sysconfdir}
14     install -m644 ${WORKDIR}/auto.* ${D}${sysconfdir}
15     install -d ${D}${sysconfdir}/auto.master.d
16     install -m644 ${WORKDIR}/enigma2.autofs ${D}${sysconfdir}/auto.master.d
17 }
18
19 CONFFILES_${PN} = "${sysconfdir}/auto.network"
20
21 pkg-postinst_${PN}() {
22 if [ -z "$D" ]; then
23     pid=`pidof automount`
24     if [ -n "$pid" ]; then
25         kill -HUP $pid
26     fi
27 fi
28 }
29 pkg-postrm_${PN}() {
30 if [ -z "$D" ]; then
31     pid=`pidof automount`
32     if [ -n "$pid" ]; then
33         kill -HUP $pid
34     fi
35 fi
36 }