Deleted Added
full compact
bluetooth (152286) bluetooth (165664)
1#!/bin/sh
2#
3# Copyright (c) 2005 Maksim Yevmenkin <m_evmenkin@yahoo.com>
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 10 unchanged lines hidden (view full) ---

19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
1#!/bin/sh
2#
3# Copyright (c) 2005 Maksim Yevmenkin <m_evmenkin@yahoo.com>
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

--- 10 unchanged lines hidden (view full) ---

19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27# $FreeBSD: head/etc/rc.d/bluetooth 152286 2005-11-10 19:09:22Z emax $
27# $FreeBSD: head/etc/rc.d/bluetooth 165664 2006-12-30 22:53:20Z yar $
28
29# PROVIDE: bluetooth
30# REQUIRE: DAEMON
31# KEYWORD: nojail nostart
32
33. /etc/rc.subr
34
35name="bluetooth"
36rcvar=
37start_cmd="bluetooth_start"
38stop_cmd="bluetooth_stop"
39
40##############################################################################
41# Read and parse Bluetooth device configuration file
42##############################################################################
43
44bluetooth_read_conf()
45{
28
29# PROVIDE: bluetooth
30# REQUIRE: DAEMON
31# KEYWORD: nojail nostart
32
33. /etc/rc.subr
34
35name="bluetooth"
36rcvar=
37start_cmd="bluetooth_start"
38stop_cmd="bluetooth_stop"
39
40##############################################################################
41# Read and parse Bluetooth device configuration file
42##############################################################################
43
44bluetooth_read_conf()
45{
46 local _err _file _line _namespace
47
46 _file=$1
47 _namespace=$2
48 _err=0
49
50 if [ ! -e $_file ]; then
51 return 0
52 fi
53

--- 166 unchanged lines hidden (view full) ---

220}
221
222##############################################################################
223# bluetooth_start()
224##############################################################################
225
226bluetooth_start()
227{
48 _file=$1
49 _namespace=$2
50 _err=0
51
52 if [ ! -e $_file ]; then
53 return 0
54 fi
55

--- 166 unchanged lines hidden (view full) ---

222}
223
224##############################################################################
225# bluetooth_start()
226##############################################################################
227
228bluetooth_start()
229{
230 local _file
231
228 dev=$1
229
230 # Automatically load modules
231 kldload ng_bluetooth > /dev/null 2>&1
232 kldload ng_hci > /dev/null 2>&1
233 kldload ng_l2cap > /dev/null 2>&1
234 kldload ng_btsocket > /dev/null 2>&1
235

--- 131 unchanged lines hidden ---
232 dev=$1
233
234 # Automatically load modules
235 kldload ng_bluetooth > /dev/null 2>&1
236 kldload ng_hci > /dev/null 2>&1
237 kldload ng_l2cap > /dev/null 2>&1
238 kldload ng_btsocket > /dev/null 2>&1
239

--- 131 unchanged lines hidden ---