cjdns: parse lan ifname more gracefully

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Lars Gierth 2015-04-25 04:00:27 +02:00 committed by Daniel Golle
parent e693e6ac09
commit 2a6a5d6084
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ EOF
fi
# enable auto-peering on ethernet
uci show network.lan | grep type=bridge >/dev/null 2>&1
uci show network.lan | grep bridge >/dev/null 2>&1
if [ $? -eq 0 ]; then
# most routers will set up an ethernet bridge for the lan
ifname="br-lan"