projects
/
project
/
luci.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
contrib/freifunk-policyrouting: make sure olsr routing table entries are removed...
[project/luci.git]
/
contrib
/
package
/
freifunk-policyrouting
/
files
/
etc
/
init.d
/
freifunk-policyrouting
1
#!/bin/sh /etc/rc.common
2
3
START=60
4
5
boot()
6
{
7
prenabled=$(uci get freifunk-policyrouting.pr.enable)
8
if [ ! "$prenabled" = "1" ]; then
9
uci -q delete olsrd.@olsrd[0].RtTable
10
uci -q delete olsrd.@olsrd[0].RtTableDefault
11
uci commit olsrd
12
fi
13
}