#!/bin/sh

# add modbusmaster ucitrack entry
uci -q batch <<-EOF >/dev/null
		del ucitrack.@modmaster[-1]
		add ucitrack modmaster
		set ucitrack.@modmaster[0].init="modmaster"
		commit ucitrack
EOF

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

/etc/init.d/modmaster enable

exit 0