small-package/luci-app-autotimeset/root/etc/uci-defaults/40_luci-app-autotimeset

11 lines
287 B
Bash

#!/bin/sh
chmod +x /etc/init.d/autotimeset /usr/bin/timesethandler
uci -q batch <<-EOF >/dev/null
delete ucitrack.@autotimeset[-1]
add ucitrack autotimeset
set ucitrack.@autotimeset[-1].init=autotimeset
commit ucitrack
EOF
rm -rf /tmp/luci-modulecache /tmp/luci-indexcache*
exit 0