From owner-freebsd-current@freebsd.org Wed May 25 20:40:36 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 96677B4A3F8 for ; Wed, 25 May 2016 20:40:36 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from homiemail-a43.g.dreamhost.com (sub5.mail.dreamhost.com [208.113.200.129]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 78BDB1E18 for ; Wed, 25 May 2016 20:40:35 +0000 (UTC) (envelope-from graham@menhennitt.com.au) Received: from homiemail-a43.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a43.g.dreamhost.com (Postfix) with ESMTP id C44B88C05F for ; Wed, 25 May 2016 13:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=menhennitt.com.au; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s= menhennitt.com.au; bh=Fqp0ESapQXKHZp6upB9SDwvN13Y=; b=KctwUlMxmR m/hhCHXt1PdxbNl6LBXVOPO5Qgw/zWLyML5TUhfZzw4bsjhSMr3kpEoBOdiEUYfg zu1M020y3j/LhBZu67a+e5mQajGWr9NWmUPYRTuCVfImz2KLBCVTBI7vaeFtKVt5 EP/9amEYgj6df4tudrbEEe8ZF7Y93RReM= Received: from [203.2.73.68] (c122-107-214-88.mckinn3.vic.optusnet.com.au [122.107.214.88]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: graham@menhennitt.com.au) by homiemail-a43.g.dreamhost.com (Postfix) with ESMTPSA id 27D368C057 for ; Wed, 25 May 2016 13:40:27 -0700 (PDT) Subject: Re: bluetooth not working in recent current To: freebsd-current@freebsd.org References: <5c480504-08e6-6d02-3123-9d66ba825426@menhennitt.com.au> From: Graham Menhennitt Message-ID: <74db6c77-3080-6177-fbaa-250f884e5402@menhennitt.com.au> Date: Thu, 26 May 2016 06:40:26 +1000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2016 20:40:36 -0000 On 26/05/2016 01:56 AM, Maksim Yevmenkin wrote: > Hi Graham > > On Tue, May 24, 2016 at 1:31 AM, Graham Menhennitt > wrote: >> I've been running 11-current AMD64 on this machine for about a year. It >> has a bluetooth dongle that has worked correctly up until a week ago. I >> updated to the latest source around then, so I presume that's what broke it. > can you please make sure that /etc/rc.d/bluetooth ran? it is usually > called from devd(8) in response to ubt(4) device arrival. > > can you also please try to start it manually and see where it stops? > i.e. something like > > # sh -x /etc/rc.d/bluetooth start ubt0 Hi Max. Thanks for responding. The output of that command is below. I'll do some more diagnosis when I get home tonight. Thanks, Graham # sh -x /etc/rc.d/bluetooth start ubt0 + . /etc/rc.subr + : 32606 + export RC_PID + [ -z '' ] + _rc_subr_loaded=YES + SYSCTL=/sbin/sysctl + SYSCTL_N='/sbin/sysctl -n' + SYSCTL_W=/sbin/sysctl + PROTECT=/usr/bin/protect + ID=/usr/bin/id + IDCMD='if [ -x /usr/bin/id ]; then /usr/bin/id -un; fi' + PS='/bin/ps -ww' + /bin/ps -ww -p 32606 -o 'jid=' + JID=0 + _rc_namevarlist='program chroot chdir env flags fib nice user group groups prepend' + _rc_subr_loaded=: + name=bluetooth + desc='Bluetooth setup script' + rcvar='' + start_cmd=bluetooth_start + stop_cmd=bluetooth_stop + required_modules='ng_bluetooth ng_hci ng_l2cap ng_btsocket' + load_rc_config bluetooth + local _name _rcvar_val _var _defval _v _msg _new _d + _name=bluetooth + false + [ -r /etc/defaults/rc.conf ] + debug 'Sourcing /etc/defaults/rc.conf' + . /etc/defaults/rc.conf + rc_info=NO + rc_startmsgs=YES + rcshutdown_timeout=90 + early_late_divider=FILESYSTEMS + always_force_depends=NO + apm_enable=NO + apmd_enable=NO + apmd_flags='' + ddb_enable=NO + ddb_config=/etc/ddb.conf + devd_enable=YES + devd_flags='' + kldxref_enable=NO + kldxref_clobber=NO + kldxref_module_path='' + powerd_enable=NO + powerd_flags='' + tmpmfs=AUTO + tmpsize=20m + tmpmfs_flags=-S + varmfs=AUTO + varsize=32m + varmfs_flags=-S + populate_var=AUTO + cleanvar_enable=YES + local_startup=/usr/local/etc/rc.d + script_name_sep=' ' + rc_conf_files='/etc/rc.conf /etc/rc.conf.local' + zfs_enable=NO + gptboot_enable=YES + gbde_autoattach_all=NO + gbde_devices=NO + gbde_attach_attempts=3 + gbde_lockdir=/etc + geli_devices='' + geli_tries='' + geli_default_flags='' + geli_autodetach=YES + root_rw_mount=YES + root_hold_delay=30 + fsck_y_enable=NO + fsck_y_flags='' + background_fsck=YES + background_fsck_delay=60 + netfs_types='nfs:NFS smbfs:SMB' + extra_netfs_types=NO + hostname='' + hostid_enable=YES + hostid_file=/etc/hostid + nisdomainname=NO + dhclient_program=/sbin/dhclient + dhclient_flags='' + background_dhclient=NO + synchronous_dhclient=NO + defaultroute_delay=30 + defaultroute_carrier_delay=5 + netif_enable=YES + netif_ipexpand_max=2048 + wpa_supplicant_program=/usr/sbin/wpa_supplicant + wpa_supplicant_flags=-s + wpa_supplicant_conf_file=/etc/wpa_supplicant.conf + firewall_enable=NO + firewall_script=/etc/rc.firewall + firewall_type=UNKNOWN + firewall_quiet=NO + firewall_logging=NO + firewall_logif=NO + firewall_flags='' + firewall_coscripts='' + firewall_client_net=192.0.2.0/24 + firewall_simple_iif=ed1 + firewall_simple_inet=192.0.2.16/28 + firewall_simple_oif=ed0 + firewall_simple_onet=192.0.2.0/28 + firewall_myservices='' + firewall_allowservices='' + firewall_trusted='' + firewall_logdeny=NO + firewall_nologports='135-139,445 1026,1027 1433,1434' + firewall_nat_enable=NO + firewall_nat_interface='' + firewall_nat_flags='' + dummynet_enable=NO + ip_portrange_first=NO + ip_portrange_last=NO + ike_enable=NO + ike_program=/usr/local/sbin/isakmpd + ike_flags='' + ipsec_enable=NO + ipsec_file=/etc/ipsec.conf + natd_program=/sbin/natd + natd_enable=NO + natd_interface='' + natd_flags='' + ipfilter_enable=NO + ipfilter_program=/sbin/ipf + ipfilter_rules=/etc/ipf.rules + ipfilter_flags='' + ipnat_enable=NO + ipnat_program=/sbin/ipnat + ipnat_rules=/etc/ipnat.rules + ipnat_flags='' + ipmon_enable=NO + ipmon_program=/sbin/ipmon + ipmon_flags=-Ds + ipfs_enable=NO + ipfs_program=/sbin/ipfs + ipfs_flags='' + pf_enable=NO + pf_rules=/etc/pf.conf + pf_program=/sbin/pfctl + pf_flags='' + pflog_enable=NO + pflog_logfile=/var/log/pflog + pflog_program=/sbin/pflogd + pflog_flags='' + ftpproxy_enable=NO + ftpproxy_flags='' + pfsync_enable=NO + pfsync_syncdev='' + pfsync_syncpeer='' + pfsync_ifconfig='' + tcp_extensions=YES + log_in_vain=0 + tcp_keepalive=YES + tcp_drop_synfin=NO + icmp_drop_redirect=NO + icmp_log_redirect=NO + network_interfaces=auto + cloned_interfaces='' + sppp_interfaces='' + ppp_enable=NO + ppp_program=/usr/sbin/ppp + ppp_mode=auto + ppp_nat=YES + ppp_profile=papchap + ppp_user=root + hostapd_enable=NO + syslogd_enable=YES + syslogd_program=/usr/sbin/syslogd + syslogd_flags=-s + syslogd_oomprotect=YES + altlog_proglist='' + inetd_enable=NO + inetd_program=/usr/sbin/inetd + inetd_flags='-wW -C 60' + iscsid_enable=NO + iscsictl_enable=NO + iscsictl_flags=-Aa + hastd_enable=NO + hastd_program=/sbin/hastd + hastd_flags='' + ctld_enable=NO + local_unbound_enable=NO + kdc_enable=NO + kdc_program=/usr/libexec/kdc + kdc_flags='' + kadmind_enable=NO + kadmind_program=/usr/libexec/kadmind + kpasswdd_enable=NO + kpasswdd_program=/usr/libexec/kpasswdd + kfd_enable=NO + kfd_program=/usr/libexec/kfd + kfd_flags='' + ipropd_master_enable=NO + ipropd_master_program=/usr/libexec/ipropd-master + ipropd_master_flags='' + ipropd_master_keytab=/etc/krb5.keytab + ipropd_master_slaves='' + ipropd_slave_enable=NO + ipropd_slave_program=/usr/libexec/ipropd-slave + ipropd_slave_flags='' + ipropd_slave_keytab=/etc/krb5.keytab + ipropd_slave_master='' + gssd_enable=NO + gssd_program=/usr/sbin/gssd + gssd_flags='' + rwhod_enable=NO + rwhod_flags='' + rarpd_enable=NO + rarpd_flags=-a + bootparamd_enable=NO + bootparamd_flags='' + pppoed_enable=NO + pppoed_provider='*' + pppoed_flags='-P /var/run/pppoed.pid' + pppoed_interface=fxp0 + sshd_enable=NO + sshd_program=/usr/sbin/sshd + sshd_flags='' + ftpd_enable=NO + ftpd_program=/usr/libexec/ftpd + ftpd_flags='' + amd_enable=NO + amd_program=/usr/sbin/amd + amd_flags='-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map' + amd_map_program=NO + autofs_enable=NO + automount_flags='' + automountd_flags='' + autounmountd_flags='' + nfs_client_enable=NO + nfs_access_cache=60 + nfs_server_enable=NO + nfs_server_flags='-u -t' + nfs_server_managegids=NO + mountd_enable=NO + mountd_flags='-r -S' + weak_mountd_authentication=NO + nfs_reserved_port_only=NO + nfs_bufpackets='' + rpc_lockd_enable=NO + rpc_lockd_flags='' + rpc_statd_enable=NO + rpc_statd_flags='' + rpcbind_enable=NO + rpcbind_program=/usr/sbin/rpcbind + rpcbind_flags='' + rpc_ypupdated_enable=NO + keyserv_enable=NO + keyserv_flags='' + nfsv4_server_enable=NO + nfscbd_enable=NO + nfscbd_flags='' + nfsuserd_enable=NO + nfsuserd_flags='' + timed_enable=NO + timed_flags='' + ntpdate_enable=NO + ntpdate_program=/usr/sbin/ntpdate + ntpdate_flags=-b + ntpdate_config=/etc/ntp.conf + ntpdate_hosts='' + ntpd_enable=NO + ntpd_program=/usr/sbin/ntpd + ntpd_config=/etc/ntp.conf + ntpd_sync_on_start=NO + ntpd_flags='-p /var/run/ntpd.pid -f /var/db/ntpd.drift' + ntp_src_leapfile=/etc/ntp/leap-seconds + ntp_db_leapfile=/var/db/ntpd.leap-seconds.list + ntp_leapfile_sources=https://www.ietf.org/timezones/data/leap-seconds.list + ntp_leapfile_fetch_opts=-mq + ntp_leapfile_expiry_days=30 + ntp_leapfile_fetch_verbose=NO + nis_client_enable=NO + nis_client_flags='' + nis_ypset_enable=NO + nis_ypset_flags='' + nis_server_enable=NO + nis_server_flags='' + nis_ypxfrd_enable=NO + nis_ypxfrd_flags='' + nis_yppasswdd_enable=NO + nis_yppasswdd_flags='' + bsnmpd_enable=NO + bsnmpd_flags='' + defaultrouter=NO + static_arp_pairs='' + static_ndp_pairs='' + static_routes='' + natm_static_routes='' + gateway_enable=NO + routed_enable=NO + routed_program=/sbin/routed + routed_flags=-q + arpproxy_all=NO + forward_sourceroute=NO + accept_sourceroute=NO + atm_enable=NO + atm_pvcs='' + atm_arps='' + hcsecd_enable=NO + hcsecd_config=/etc/bluetooth/hcsecd.conf + sdpd_enable=NO + sdpd_control=/var/run/sdp + sdpd_groupname=nobody + sdpd_username=nobody + bthidd_enable=NO + bthidd_config=/etc/bluetooth/bthidd.conf + bthidd_hids=/var/db/bthidd.hids + rfcomm_pppd_server_enable=NO + rfcomm_pppd_server_profile='one two' + rfcomm_pppd_server_one_channel=1 + rfcomm_pppd_server_two_channel=3 + ubthidhci_enable=NO + netwait_enable=NO + netwait_timeout=60 + netwait_if_timeout=30 + icmp_bmcastecho=NO + ipv6_network_interfaces=auto + ipv6_activate_all_interfaces=NO + ipv6_defaultrouter=NO + ipv6_static_routes='' + ipv6_gateway_enable=NO + ipv6_cpe_wanif=NO + ipv6_privacy=NO + route6d_enable=NO + route6d_program=/usr/sbin/route6d + route6d_flags='' + ipv6_default_interface=NO + rtsol_flags='' + rtsold_enable=NO + rtsold_flags=-a + rtadvd_enable=NO + rtadvd_interfaces='' + mroute6d_enable=NO + mroute6d_program=/usr/local/sbin/pim6dd + mroute6d_flags='' + stf_interface_ipv4addr='' + stf_interface_ipv4plen=0 + stf_interface_ipv6_ifid=0:0:0:1 + stf_interface_ipv6_slaid=0000 + ipv6_ipv4mapping=NO + ipv6_ipfilter_rules=/etc/ipf6.rules + ip6addrctl_enable=YES + ip6addrctl_verbose=NO + ip6addrctl_policy=AUTO + keyboard='' + keymap=NO + keyrate=NO + keybell=NO + keychange=NO + cursor=NO + scrnmap=NO + font8x16=NO + font8x14=NO + font8x8=NO + blanktime=300 + saver=NO + moused_nondefault_enable=YES + moused_enable=NO + moused_type=auto + moused_port=/dev/psm0 + moused_flags='' + mousechar_start=NO + allscreens_flags='' + allscreens_kbdflags='' + mta_start_script=/etc/rc.sendmail + sendmail_enable=NO + sendmail_pidfile=/var/run/sendmail.pid + sendmail_procname=/usr/sbin/sendmail + sendmail_flags='-L sm-mta -bd -q30m' + sendmail_cert_create=YES + sendmail_submit_enable=YES + sendmail_submit_flags='-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost' + sendmail_outbound_enable=YES + sendmail_outbound_flags='-L sm-queue -q30m' + sendmail_msp_queue_enable=YES + sendmail_msp_queue_flags='-L sm-msp-queue -Ac -q30m' + sendmail_rebuild_aliases=NO + auditd_enable=NO + auditd_program=/usr/sbin/auditd + auditd_flags='' + auditdistd_enable=NO + auditdistd_program=/usr/sbin/auditdistd + auditdistd_flags='' + cron_enable=YES + cron_program=/usr/sbin/cron + cron_dst=YES + cron_flags='' + lpd_enable=NO + lpd_program=/usr/sbin/lpd + lpd_flags='' + nscd_enable=NO + chkprintcap_enable=NO + chkprintcap_flags=-d + dumpdev=AUTO + dumpdir=/var/crash + savecore_enable=YES + savecore_flags='-m 10' + crashinfo_enable=YES + crashinfo_program=/usr/sbin/crashinfo + quota_enable=NO + check_quotas=YES + quotaon_flags=-a + quotaoff_flags=-a + quotacheck_flags=-a + accounting_enable=NO + ibcs2_enable=NO + ibcs2_loaders=coff + firstboot_sentinel=/firstboot + sysvipc_enable=NO + linux_enable=NO + svr4_enable=NO + clear_tmp_enable=NO + clear_tmp_X=YES + ldconfig_insecure=NO + ldconfig_paths='/usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg' + ldconfig32_paths='/usr/lib32 /usr/lib32/compat' + ldconfigsoft_paths='/usr/libsoft /usr/libsoft/compat /usr/local/libsoft' + ldconfig_paths_aout='/usr/lib/compat/aout /usr/local/lib/aout' + ldconfig_local_dirs=/usr/local/libdata/ldconfig + ldconfig_local32_dirs=/usr/local/libdata/ldconfig32 + ldconfig_localsoft_dirs=/usr/local/libdata/ldconfigsoft + kern_securelevel_enable=NO + kern_securelevel=-1 + update_motd=YES + entropy_boot_file=/boot/entropy + entropy_file=/entropy + entropy_dir=/var/db/entropy + entropy_save_sz=4096 + entropy_save_num=8 + harvest_mask=511 + dmesg_enable=YES + watchdogd_enable=NO + watchdogd_flags='' + devfs_rulesets='/etc/defaults/devfs.rules /etc/devfs.rules' + devfs_system_ruleset='' + devfs_set_rulesets='' + devfs_load_rulesets=YES + performance_cx_lowest=C2 + performance_cpu_freq=NONE + economy_cx_lowest=Cmax + economy_cpu_freq=NONE + virecover_enable=YES + ugidfw_enable=NO + bsdextended_script=/etc/rc.bsdextended + newsyslog_enable=YES + newsyslog_flags=-CN + mixer_enable=YES + opensm_enable=NO + rctl_enable=YES + rctl_rules=/etc/rctl.conf + iovctl_files='' + jail_enable=NO + jail_parallel_start=NO + jail_list='' + jail_reverse_stop=NO + [ -z '' ] + source_rc_confs_defined=yes + source_rc_confs + local i sourced_files + sourced_files=:/etc/rc.conf: + [ -r /etc/rc.conf ] + . /etc/rc.conf + hostname=starker + ifconfig_re0=DHCP + local_unbound_enable=YES + sshd_enable=YES + ntpd_enable=YES + ntpd_sync_on_start=YES + powerd_enable=YES + dumpdev=NO + hald_enable=YES + dbus_enable=YES + kdm4_enable=YES + background_fsck=NO + devfs_system_ruleset=system + rpcbind_enable=YES + nfs_client_enable=YES + nfs_server_enable=YES + rpc_statd_enable=YES + rpc_lockd_enable=YES + sendmail_enable=NONE + nullmailer_enable=YES + vboxnet_enable=YES + bluetooth_enable=YES + cupsd_enable=YES + sourced_files=:/etc/rc.conf::/etc/rc.conf.local: + [ -r /etc/rc.conf.local ] + _rc_conf_loaded=true + [ -n bluetooth ] + _d=/etc + [ -f /etc/rc.conf.d/bluetooth ] + [ -d /etc/rc.conf.d/bluetooth ] + _d=/usr/local/etc + [ -f /usr/local/etc/rc.conf.d/bluetooth ] + [ -d /usr/local/etc/rc.conf.d/bluetooth ] + hccontrol=/usr/sbin/hccontrol + hcseriald=/usr/sbin/hcseriald + run_rc_command start ubt0 + _return=0 + rc_arg=start + [ -z bluetooth ] + shift 1 + rc_extra_args=ubt0 + _rc_prefix='' + eval '_override_command=$bluetooth_program' + _override_command='' + command='' + _keywords='start stop restart rcvar enabled describe extracommands ' + rc_pid='' + _pidcmd='' + _procname='' + [ -n '' ] + [ -z start ] + [ start '=' enabled ] + [ -n '' ] + eval 'rc_flags=$bluetooth_flags' + rc_flags='' + eval '_chdir=$bluetooth_chdir' '_chroot=$bluetooth_chroot' '_nice=$bluetooth_nice' '_user=$bluetooth_user' '_group=$bluetooth_group' '_groups=$bluetooth_groups' '_fib=$bluetooth_fib' '_env=$bluetooth_env' '_prepend=$bluetooth_prepend' '_login_class=${bluetooth_login_class:-daemon}' '_oomprotect=$bluetooth_oomprotect' + _chdir='' _chroot='' _nice='' _user='' _group='' _groups='' _fib='' _env='' _prepend='' _login_class=daemon _oomprotect='' + [ -n '' ] + [ -z '' ] + eval + [ start '!=' start ] + [ -n '' -a start '!=' rcvar -a start '!=' stop -a start '!=' describe ] + [ -n '' -a start '=' stop -a -z '' ] + [ start '=' start -a -z '' -a -n '' ] + eval '_cmd=$start_cmd' '_precmd=$start_precmd' '_postcmd=$start_postcmd' + _cmd=bluetooth_start _precmd='' _postcmd='' + [ -n bluetooth_start ] + _run_rc_precmd + check_required_before start + local _f + return 0 + [ -n '' ] + check_required_after start + local _f _args + _args=ng_bluetooth + load_kld ng_bluetooth + local _loaded _mod _opt _re + getopts e:m: _opt + shift 0 + [ 1 -ne 1 ] + _mod=ng_bluetooth + _loaded=false + [ -n '' ] + kldstat -q -m ng_bluetooth + _loaded=true + true + debug 'load_kld: ng_bluetooth kernel module already loaded.' + return 0 + _args=ng_hci + load_kld ng_hci + local _loaded _mod _opt _re + getopts e:m: _opt + shift 0 + [ 1 -ne 1 ] + _mod=ng_hci + _loaded=false + [ -n '' ] + kldstat -q -m ng_hci + _loaded=true + true + debug 'load_kld: ng_hci kernel module already loaded.' + return 0 + _args=ng_l2cap + load_kld ng_l2cap + local _loaded _mod _opt _re + getopts e:m: _opt + shift 0 + [ 1 -ne 1 ] + _mod=ng_l2cap + _loaded=false + [ -n '' ] + kldstat -q -m ng_l2cap + _loaded=true + true + debug 'load_kld: ng_l2cap kernel module already loaded.' + return 0 + _args=ng_btsocket + load_kld ng_btsocket + local _loaded _mod _opt _re + getopts e:m: _opt + shift 0 + [ 1 -ne 1 ] + _mod=ng_btsocket + _loaded=false + [ -n '' ] + kldstat -q -m ng_btsocket + _loaded=true + true + debug 'load_kld: ng_btsocket kernel module already loaded.' + return 0 + return 0 + return 0 + _run_rc_doit 'bluetooth_start ubt0' + debug 'run_rc_command: doit: bluetooth_start ubt0' + eval 'bluetooth_start ubt0' + bluetooth_start ubt0 + local _file + dev=ubt0 + hook=hook + expr ubt0 : 'ubt\([0-9]\{1,\}\)' + unit=0 + [ -z 0 ] + bluetooth_device_authentication_enable=0 + bluetooth_device_class=ff:01:0c + bluetooth_device_connectable=1 + bluetooth_device_discoverable=1 + bluetooth_device_encryption_mode=0 + bluetooth_device_hci_debug_level=3 + bluetooth_device_l2cap_debug_level=3 + /usr/bin/uname -n + bluetooth_device_local_name='starker (ubt0)' + bluetooth_device_role_switch=1 + _file=/etc/defaults/bluetooth.device.conf + bluetooth_read_conf /etc/defaults/bluetooth.device.conf bluetooth_device_ + local _err _file _line _namespace + _file=/etc/defaults/bluetooth.device.conf + _namespace=bluetooth_device_ + _err=0 + [ ! -e /etc/defaults/bluetooth.device.conf ] + [ ! -f /etc/defaults/bluetooth.device.conf -o ! -r /etc/defaults/bluetooth.device.conf ] + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + continue + read _line + [ -z '' ] + continue + read _line + return 0 + _file=/etc/bluetooth/ubt0.conf + bluetooth_read_conf /etc/bluetooth/ubt0.conf bluetooth_device_ + local _err _file _line _namespace + _file=/etc/bluetooth/ubt0.conf + _namespace=bluetooth_device_ + _err=0 + [ ! -e /etc/bluetooth/ubt0.conf ] + return 0 + bluetooth_setup_stack ubt0 hook + dev=ubt0 + shift + hook=hook + shift + ngctl mkpeer ubt0: hci hook drv + ngctl name ubt0:hook ubt0hci + ngctl msg ubt0hci: set_debug 3 + ngctl mkpeer ubt0hci: l2cap acl hci + ngctl name ubt0hci:acl ubt0l2cap + ngctl msg ubt0l2cap: set_debug 3 + ngctl connect ubt0hci: btsock_hci_raw: raw ubt0raw + ngctl connect ubt0l2cap: btsock_l2c_raw: ctl ubt0ctl + ngctl connect ubt0l2cap: btsock_l2c: l2c ubt0l2c + /usr/sbin/hccontrol -n ubt0hci reset + return 1 + bluetooth_shutdown_stack ubt0 + dev=ubt0 + ngctl shutdown ubt0hci: + ngctl shutdown ubt0l2cap: + return 0 + err 1 'Unable to setup Bluetooth stack for device ubt0' + exitval=1 + shift + [ -x /usr/bin/logger ] + logger '/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0' + echo '/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0' /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 + exit 1