#!/bin/sh

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

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

exit 0

