lede/package/lean/luci-app-sfe/root/etc/uci-defaults/sfe
2018-10-08 02:10:17 +08:00

18 lines
393 B
Bash
Executable File

#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete ucitrack.@sfe[-1]
add ucitrack sfe
set ucitrack.@sfe[-1].init=sfe
commit ucitrack
EOF
sed -i '/dnscache-watchdog.sh/d' /etc/crontabs/root
echo '*/1 * * * * /usr/share/dnscache-watchdog.sh' >> /etc/crontabs/root
[ ! -f /usr/sbin/dnscache ] && ln /usr/sbin/pdnsd /usr/sbin/dnscache
/etc/init.d/sfe enable
rm -f /tmp/luci-indexcache
exit 0