From: Manuel Munz Date: Sun, 27 Jan 2013 00:21:19 +0000 (+0000) Subject: luci-0.11: merge r9652 X-Git-Tag: 0.11.1~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f8ea6d5b21f0e4d634f5bbd32107365dc5fbe368;p=oweals%2Fluci.git luci-0.11: merge r9652 --- 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