small-package/luci-app-iptvhelper/root/etc/uci-defaults/40_iptvhelper

12 lines
255 B
Plaintext
Raw Normal View History

2021-09-24 23:37:27 +08:00
#!/bin/sh
# needed for "Save and Apply" to restart iptvhelper
uci -q batch <<-EOF >/dev/null
delete ucitrack.@iptvhelper[-1]
add ucitrack iptvhelper
set ucitrack.@iptvhelper[-1].init="iptvhelper"
commit ucitrack
EOF
rm -f /tmp/luci-indexcache
exit 0