lede/package/lean/luci-app-sfe/root/usr/share/dnscache-watchdog.sh
2018-10-08 02:10:17 +08:00

10 lines
165 B
Bash
Executable File

#!/bin/sh
dns_enable=$(uci get sfe.config.dns 2>/dev/null)
if [ $dns_enable -eq 1 ]; then
if ! pidof dnscache>/dev/null; then
/etc/init.d/sfe restart
fi
fi