mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-20 18:36:59 +08:00
10 lines
179 B
Bash
Executable File
10 lines
179 B
Bash
Executable File
#!/bin/sh
|
|
|
|
dns_enable=$(uci flowoffload.@flow[0].dns 2>/dev/null)
|
|
|
|
if [ $dns_enable -eq 1 ]; then
|
|
if ! pidof dnscache>/dev/null; then
|
|
/etc/init.d/flowoffload restart
|
|
fi
|
|
fi
|