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/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248584

--- Comment #1 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
Created attachment 217143
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217143&action=
=3Dedit
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=3D"${cloned_interfaces:+${cloned_interfaces} }tap0"
ifconfig_tap0_alias0=3D"inet6 2001:db8::746f:6f74:6575:6c42 prefixlen 64"
ifconfig_tap0_alias1=3D"inet 192.0.2.66 netmask 255.255.255.0"

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

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

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



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