Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Aug 2020 05:07:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 248584] usr.sbin/bluetooth/btpand: rc script to start btpand
Message-ID:  <bug-248584-227-AAMdilJPzR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-248584-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-248584-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248584

--- Comment #1 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
Created attachment 217143
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=217143&action=edit
patch to head/libexec/rc/rc.d/btpand

This was made by me.
Use it as a base for reworking :)

Below is a setting you can put in /etc/rc.conf.

# Set the tap0
cloned_interfaces="${cloned_interfaces:+${cloned_interfaces} }tap0"
ifconfig_tap0_alias0="inet6 2001:db8::746f:6f74:6575:6c42 prefixlen 64"
ifconfig_tap0_alias1="inet 192.0.2.66 netmask 255.255.255.0"

# The normal configuration of btpand.
btpand_enable="YES"
btpand_device="58:9c:fc:00:0e:b3"
btpand_service="NAP"

# Multi-profile settings
btpand_profiles="panu gn nap"
btpand_panu_enable="YES"
btpand_panu_device="ubt0"       # can set bluetooth device name
btpand_panu_service="PANU"
btpand_panu_remote="58:9c:fc:ed:8c:0e"  # client mode
btpand_gn_enable="YES"
btpand_gn_device="phone"        # Strings that are not device names are from
/etc/bluetooth/hosts
btpand_gn_service="GN"
btpand_nap_enable="YES"
btpand_nap_device="58:9c:fc:00:0e:b3"
btpand_nap_service="NAP"

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248584-227-AAMdilJPzR>