10 $_rc_subr_loaded .
/etc
/rc.subr
14 command="/usr/sbin/${name}"
15 start_cmd
="btconfig_start"
16 stop_cmd
="btconfig_stop"
17 status_cmd
="btconfig_status"
21 echo -n 'Configuring Bluetooth controllers:'
24 # Configure Bluetooth controllers.
26 # If ${btconfig_devices} is set, it should be a list of devices to
27 # configure. Otherwise, all available devices will be configured.
29 # If ${btconfig_<dev>} is set, it will be used as the parameter
30 # list for btconfig. Otherwise ${btconfig_args} will be used or
31 # if that is not set, the default string "enable" will be used.
34 devs
="${btconfig_devices:-$(${command} -l)}"
35 for dev
in ${devs}; do
36 eval args
="\$btconfig_${dev}"
37 if [ -z "${args}" ]; then
38 args
="${btconfig_args:-enable}"
42 ${command} ${dev} ${args}
50 echo -n 'Disabling Bluetooth controllers:'
52 devs
="${btconfig_devices:-$(${command} -l)}"
53 for dev
in ${devs}; do
55 ${command} ${dev} disable
66 load_rc_config
${name}