2022-03-17 19:57:48 -06:00
|
|
|
#!/bin/sh
|
|
|
|
if [ "$(/sbin/uci -c /etc/config.mesh -q get aredn.@tunnel[0])" != "tunnel" ]; then
|
|
|
|
/sbin/uci -c /etc/config.mesh -q add aredn tunnel
|
|
|
|
/sbin/uci -c /etc/config.mesh -q commit aredn
|
|
|
|
fi
|
2023-09-19 21:04:54 -06:00
|
|
|
|
|
|
|
# Default tunnel weight to 1 (perfect RF)
|
|
|
|
if [ "$(/sbin/uci -c /etc/config.mesh -q get aredn.@tunnel[0].weight)" = "" ]; then
|
|
|
|
/sbin/uci -c /etc/config.mesh -q set aredn.@tunnel[0].weight=1
|
|
|
|
/sbin/uci -c /etc/config.mesh -q commit aredn
|
|
|
|
fi
|