#!/bin/sh
[ ! -f "/usr/share/ucitrack/luci-app-wolplus.json" ] && {
    cat > /usr/share/ucitrack/luci-app-wolplus.json << EEOF
{
    "config": "wolplus",
    "init": "wolplus"
}
EEOF
}

uci -q batch <<-EOF >/dev/null
	delete ucitrack.@wolplus[-1]
	add ucitrack wolplus
	set ucitrack.@wolplus[-1].init=wolplus
	commit ucitrack
EOF

rm -f /tmp/luci-indexcache
exit 0
