summaryrefslogtreecommitdiff
path: root/recipes-connectivity/bluez
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/bluez')
-rwxr-xr-xrecipes-connectivity/bluez/bluez5/bt-pan/bt-pan21
1 files changed, 9 insertions, 12 deletions
diff --git a/recipes-connectivity/bluez/bluez5/bt-pan/bt-pan b/recipes-connectivity/bluez/bluez5/bt-pan/bt-pan
index 987ecaa..f142bb1 100755
--- a/recipes-connectivity/bluez/bluez5/bt-pan/bt-pan
+++ b/recipes-connectivity/bluez/bluez5/bt-pan/bt-pan
@@ -332,23 +332,20 @@ def main(args=None):
if opts.call == 'server':
+ inm = opts.iface_name
brctl = subprocess.Popen(
- ['brctl', 'show', opts.iface_name],
+ ['brctl', 'show', inm],
stdout=open(os.devnull, 'wb'), stderr=subprocess.PIPE )
brctl_stderr = brctl.stderr.read()
- p = lambda fmt='',*a,**k: print(fmt.format(*a,**k), file=sys.stderr)
writePidFile(opts.iface_name)
if brctl.wait() or brctl_stderr:
- p = lambda fmt='',*a,**k: print(fmt.format(*a,**k), file=sys.stderr)
- p('brctl check failed for interface: {}', opts.iface_name)
- lg.error('brctl check failed for interface (missing?): {}', opts.iface_name)
- p()
- p('Bridge interface must be added and configured before starting server, e.g. with:')
- p(' brctl addbr bnep-bridge')
- p(' brctl setfd bnep-bridge 0')
- p(' brctl stp bnep-bridge off')
- p(' ip addr add 10.101.225.84/24 dev bnep-bridge')
- p(' ip link set bnep-bridge up')
+ lg.error('brctl check failed for interface (missing?): {}'.format(inm))
+ lg.error('Bridge interface must be added and configured before starting server, e.g. with:')
+ lg.error(' brctl addbr {}'.format(inm))
+ lg.error(' brctl setfd {} 0'.format(inm))
+ lg.error(' brctl stp {} off'.format(inm))
+ lg.error(' ip addr add 10.101.225.84/24 dev {}'.format(inm))
+ lg.error(' ip link set {} up'.format(inm))
return 1
servers = list()