3 # $NetBSD: btdevctl,v 1.3 2006/09/10 15:45:55 plunky Exp $
7 # REQUIRE: bluetooth bthcid
10 $_rc_subr_loaded .
/etc
/rc.subr
14 required_files
="/etc/bluetooth/btdevctl.conf"
15 start_cmd
='do_btdevctl "-A" "Attaching"'
16 stop_cmd
='do_btdevctl "-D" "Detaching"'
20 echo "${2} Bluetooth devices:"
22 while read -r service address device junk
; do
29 if [ -z ${device} -o ${junk} ]; then
30 echo "${name}: invalid entry"
34 /usr
/sbin
/btdevctl
${1} "-a" ${address} "-d" ${device} "-s" ${service}
35 done < /etc
/bluetooth
/btdevctl.conf
38 load_rc_config
${name}