mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-01 16:27:08 +08:00
12 lines
220 B
Bash
Executable File
12 lines
220 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ssr_enable=$(uci get ssrpro.@ssrpro[0].enabled 2>/dev/null)
|
|
|
|
if [ $ssr_enable -eq 1 ]; then
|
|
if pidof ssr-redir>/dev/null; then
|
|
/etc/init.d/ssrpro reload_rule
|
|
else
|
|
/etc/init.d/ssrpro restart
|
|
fi
|
|
fi
|