diff options
Diffstat (limited to 'contrib/package/freifunk-policyrouting/files/etc/init.d')
-rwxr-xr-x | contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting b/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting index 00730b021..58faa67aa 100755 --- a/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting +++ b/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting @@ -1,11 +1,11 @@ #!/bin/sh /etc/rc.common START=60 - +. /lib/functions/network.sh boot() { 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].RtTableDefault uci commit olsrd |