diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-12-31 10:37:18 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2006-12-31 10:37:18 +0000 |
| commit | 0c3063905977eef4acd1a8cfedd679680e998f16 (patch) | |
| tree | 7ed36d4fe8965c59b37bcccfa387cf77469cbeef /etc/rc.d/bluetooth | |
| parent | 619a36fa664f5c40f76d2816aacbe36b2c760ec5 (diff) | |
Notes
Diffstat (limited to 'etc/rc.d/bluetooth')
| -rw-r--r-- | etc/rc.d/bluetooth | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/etc/rc.d/bluetooth b/etc/rc.d/bluetooth index c48af640ee71c..cfcf104f349b8 100644 --- a/etc/rc.d/bluetooth +++ b/etc/rc.d/bluetooth @@ -36,6 +36,7 @@ name="bluetooth" rcvar= start_cmd="bluetooth_start" stop_cmd="bluetooth_stop" +required_modules="ng_bluetooth ng_hci ng_l2cap ng_btsocket" ############################################################################## # Read and parse Bluetooth device configuration file @@ -231,17 +232,11 @@ bluetooth_start() dev=$1 - # Automatically load modules - kldload ng_bluetooth > /dev/null 2>&1 - kldload ng_hci > /dev/null 2>&1 - kldload ng_l2cap > /dev/null 2>&1 - kldload ng_btsocket > /dev/null 2>&1 - # Try to figure out device type by looking at device name case "${dev}" in # sioX - serial/UART Bluetooth device sio*) - kldload ng_h4 > /dev/null 2>&1 + load_kld ng_h4 || return 1 hook="hook" |
