mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-09 18:02:04 +08:00
12 lines
217 B
Bash
Executable File
12 lines
217 B
Bash
Executable File
#!/bin/sh
|
|
|
|
brook_enable=$(uci get brook.@brook[0].enabled 2>/dev/null)
|
|
|
|
if [ $brook_enable -eq 1 ]; then
|
|
if pidof brook>/dev/null; then
|
|
/etc/init.d/brookpro reload
|
|
else
|
|
/etc/init.d/brookpro restart
|
|
fi
|
|
fi
|