Lines 9-18
depend() {
Link Here
|
9 |
} |
9 |
} |
10 |
|
10 |
|
11 |
start() { |
11 |
start() { |
12 |
ebegin "Starting Bluetooth" |
12 |
ebegin "Starting Bluetooth" |
13 |
local result=0 |
13 |
local result |
14 |
|
14 |
|
15 |
ebegin " Starting bluetoothd" |
15 |
eindent |
|
|
16 |
ebegin "Starting bluetoothd" |
16 |
# -s enables internal sdp server |
17 |
# -s enables internal sdp server |
17 |
start-stop-daemon --start \ |
18 |
start-stop-daemon --start \ |
18 |
--exec /usr/sbin/bluetoothd |
19 |
--exec /usr/sbin/bluetoothd |
Lines 20-43
start() {
Link Here
|
20 |
eend ${result} |
21 |
eend ${result} |
21 |
|
22 |
|
22 |
if [ "${HID2HCI_ENABLE}" = "true" -a -x /usr/sbin/hid2hci ]; then |
23 |
if [ "${HID2HCI_ENABLE}" = "true" -a -x /usr/sbin/hid2hci ]; then |
23 |
ebegin " Running hid2hci" |
24 |
ebegin "Running hid2hci" |
24 |
/usr/sbin/hid2hci --tohci -q #be quiet |
25 |
/usr/sbin/hid2hci --tohci -q #be quiet |
25 |
[ ${result} == 0 ] && result=$? |
26 |
eend $? |
26 |
eend ${result} |
|
|
27 |
fi |
27 |
fi |
28 |
|
28 |
|
29 |
if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then |
29 |
if [ "${RFCOMM_ENABLE}" = "true" -a -x /usr/bin/rfcomm ]; then |
30 |
if [ -f "${RFCOMM_CONFIG}" ]; then |
30 |
if [ -f "${RFCOMM_CONFIG}" ]; then |
31 |
ebegin " Starting rfcomm" |
31 |
ebegin "Starting rfcomm" |
32 |
/usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all |
32 |
/usr/bin/rfcomm -f "${RFCOMM_CONFIG}" bind all |
33 |
[ ${result} == 0 ] && result=$? |
33 |
eend $? |
34 |
eend ${result} |
|
|
35 |
else |
34 |
else |
36 |
ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" |
35 |
ewarn "Not enabling rfcomm because RFCOMM_CONFIG does not exists" |
37 |
fi |
36 |
fi |
38 |
fi |
37 |
fi |
39 |
|
38 |
|
40 |
eend ${result} |
39 |
eoutdent |
|
|
40 |
return ${result} |
41 |
} |
41 |
} |
42 |
|
42 |
|
43 |
stop() { |
43 |
stop() { |