mirror of
https://github.com/openwrt/routing.git
synced 2025-12-21 23:34:32 +04:00
Merge pull request #94 from SeattleMeshnet/some-uci-defaults-fixes
Some uci defaults fixes
This commit is contained in:
@@ -22,8 +22,10 @@ EOF
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# enable auto-peering on ethernet
|
||||
uci show network.lan | grep bridge >/dev/null 2>&1
|
||||
# enable auto-peering on ethernet interface lan, if existing
|
||||
uci get network.lan | grep interface >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
uci get network.lan.type | grep bridge >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
# most routers will set up an ethernet bridge for the lan
|
||||
ifname="br-lan"
|
||||
@@ -37,7 +39,7 @@ EOF
|
||||
set cjdns.@eth_interface[-1].beacon=2
|
||||
set cjdns.@eth_interface[-1].bind=$ifname
|
||||
EOF
|
||||
|
||||
fi
|
||||
# set the tun interface name
|
||||
uci set cjdns.cjdns.tun_device=tuncjdns
|
||||
|
||||
|
||||
Reference in New Issue
Block a user