mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
18 lines
393 B
Bash
Executable File
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
|