summaryrefslogtreecommitdiff
blob: c2df4356fed10a4df651256664adfa98898d93d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Purpose License v2
# $Id$

name="NFC daemon"

command="/usr/libexec/nfc/neard"
command_args="${NEARD_OPTS}"

start_stop_daemon_args="--exec /usr/libexec/nfc/neard"

depend() {
	need dbus
}

start_pre() {
	if [ -e /proc/modules ] ; then
		if ! grep -qs NFC_RAW /proc/net/protocols ; then
			modprobe -q nfc
		fi
	fi
}