contrib/freifunkpolicyrouting: Also remove olsrd rttables when the wan interface is not up at boot
This commit is contained in:
parent
888f04322b
commit
5f76dada3c
1 changed files with 2 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
|
|
||||||
START=60
|
START=60
|
||||||
|
. /lib/functions/network.sh
|
||||||
boot()
|
boot()
|
||||||
{
|
{
|
||||||
prenabled=$(uci get freifunk-policyrouting.pr.enable)
|
prenabled=$(uci get freifunk-policyrouting.pr.enable)
|
||||||
if [ ! "$prenabled" = "1" ]; then
|
if [ ! "$prenabled" = "1" ] || ! network_is_up wan; then
|
||||||
uci -q delete olsrd.@olsrd[0].RtTable
|
uci -q delete olsrd.@olsrd[0].RtTable
|
||||||
uci -q delete olsrd.@olsrd[0].RtTableDefault
|
uci -q delete olsrd.@olsrd[0].RtTableDefault
|
||||||
uci commit olsrd
|
uci commit olsrd
|
||||||
|
|
Loading…
Reference in a new issue