#!/bin/sh

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

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

exit 0

