summaryrefslogtreecommitdiff
path: root/packages/freesmartphone/gsm0710muxd_svn.bb
blob: 0849b55bbc752c1b915a6c5a7e4323f3a3ac2395 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
DESCRIPTION = "gsm.07.10 muxer userspace daemon"
AUTHOR = "M. Dietrich"
SECTION = "console/network"
DEPENDS = "intltool-native dbus"
LICENSE = "GPL"
PV = "0.0+svnr${SRCREV}"
PR = "r2"

SRC_URI = "svn://projects.linuxtogo.org/svn/smartphones/trunk/software;module=gsm0710muxd"
S = "${WORKDIR}/gsm0710muxd"

inherit autotools update-rc.d

INITSCRIPT_NAME = "gsm0710muxd"
INITSCRIPT_PARAMS = "defaults 35"

do_install_append() {
	chmod a+rx ${D}${sysconfdir}/init.d/gsm0710muxd
}

pkg_postinst_${PN}() {
	# can't do this offline
	if [ "x$D" != "x" ]; then
		exit 1
	fi
	# reload dbus configuration files
	for i in `pidof dbus-daemon`; do
		kill -SIGHUP $i
	done
}