#!/bin/sh

# replace existing wanlan ucitrack entry
uci -q batch <<-EOF >/dev/null
	del ucitrack.@wanlan[-1]
	add ucitrack wanlan
	set ucitrack.@wanlan[0].exec="/etc/init.d/wanlan reload"
	add_list ucitrack.@wanlan[0].affects="network"
	commit ucitrack
EOF

# remove LuCI cache
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache

exit 0

