--- bluetooth.orig 2005-03-07 20:46:03.123060912 +0300 +++ bluetooth 2005-03-07 21:50:18.157006672 +0300 @@ -88,6 +88,16 @@ start() { fi fi + if [ "${OPD_ENABLE}" = "true" -a -x /usr/bin/opd ]; then + if [ -n "${OPD_OPTIONS}" ]; then + ebegin " Starting opd" + start-stop-daemon --start --quiet \ + --exec /usr/bin/opd -- ${OPD_OPTIONS} + eend $? + else + ewarn "Not starting opd because OPD_OPTIONS not defined." + fi + fi start_uarts eend 0 } @@ -96,6 +106,12 @@ stop() { ebegin "Shutting down Bluetooth" + if [ "${OPD_ENABLE}" = "true" -a -x /usr/bin/opd ]; then + ebegin " Stopping opd" + start-stop-daemon --stop --quiet --exec /usr/bin/opd + eend $? + fi + if [ "${PAND_ENABLE}" = "true" -a -x /usr/bin/pand ]; then ebegin " Stopping pand" start-stop-daemon --stop --quiet --exec /usr/bin/pand