summaryrefslogtreecommitdiff
blob: c8c86631fcb8eb44fb3cae917250cf7e6b7c3340 (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
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/files/init.d-dund,v 1.1 2010/09/24 21:32:51 pacho Exp $

depend() {
	need bluetooth
}

start() {
	local result service

	ebegin "Starting dund"
	start-stop-daemon --start --quiet \
		--exec /usr/bin/dund -- ${DUND_OPTIONS}
	result="$?"
	eend ${result}
}

stop() {
	ebegin "Stopping dund"
	/usr/bin/dund -K
	start-stop-daemon --stop --quiet --exec /usr/bin/dund
	eend $?
}