cjdns: parse lan ifname more gracefully
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
e693e6ac09
commit
2a6a5d6084
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# enable auto-peering on ethernet
|
# 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
|
if [ $? -eq 0 ]; then
|
||||||
# most routers will set up an ethernet bridge for the lan
|
# most routers will set up an ethernet bridge for the lan
|
||||||
ifname="br-lan"
|
ifname="br-lan"
|
||||||
|
|
Loading…
Reference in a new issue