luci/contrib/package/freifunk-policyrouting/files/etc/init.d/freifunk-policyrouting

13 lines
247 B
Bash
Executable file

#!/bin/sh /etc/rc.common
START=60
boot()
{
prenabled=$(uci get freifunk-policyrouting.pr.enable)
if [ ! "$prenabled" = "1" ]; then
uci -q delete olsrd.@olsrd[0].RtTable
uci -q delete olsrd.@olsrd[0].RtTableDefault
uci commit olsrd
fi
}