| 1 |
#!/sbin/runscript |
| 2 |
# Copyright 1999-2011 Gentoo Foundation |
| 3 |
# Distributed under the terms of the GNU General Public License v2 |
| 4 |
# $Header: $ |
| 5 |
|
| 6 |
depend() { |
| 7 |
after coldplug |
| 8 |
need dbus localmount hostname |
| 9 |
} |
| 10 |
|
| 11 |
start() { |
| 12 |
if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then |
| 13 |
if [ -f "${RFCOMM_CONFIG}" ]; then |
| 14 |
ebegin "Starting rfcomm" |
| 15 |
/usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all |
| 16 |
eend $? |
| 17 |
else |
| 18 |
ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" |
| 19 |
fi |
| 20 |
fi |
| 21 |
} |
| 22 |
|
| 23 |
stop() { |
| 24 |
ebegin "Shutting down rfcomm" |
| 25 |
/usr/bin/rfcomm release all |
| 26 |
eend $? |
| 27 |
} |