diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-01-27 00:17:48 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-01-27 00:17:48 +0000 |
commit | 5f76dada3c0eb1e949ca3b2cf2adacaab25028eb (patch) | |
tree | 94183d6ad166fb2205f7370701000d000538ce57 /contrib/package/freifunk-policyrouting/files/etc | |
parent | 888f04322ba3487e0771548ec7008f4e237c542d (diff) |
contrib/freifunkpolicyrouting: Also remove olsrd rttables when the wan interface is not up at boot
Diffstat (limited to 'contrib/package/freifunk-policyrouting/files/etc')
-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 00730b0212..58faa67aa3 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 |