mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00: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
|