mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2026-03-14 06:22:36 +03:00
Add cron task service youtubeunblock restart
This commit is contained in:
@@ -7,7 +7,7 @@ config_files="dhcp
|
||||
youtubeUnblock
|
||||
https-dns-proxy"
|
||||
|
||||
echo "Upgrade packeges..."
|
||||
echo "Upgrade packages..."
|
||||
|
||||
opkg update
|
||||
opkg upgrade youtubeUnblock
|
||||
@@ -67,6 +67,15 @@ uci set dhcp.@domain[-1].name='openai.com'
|
||||
uci set dhcp.@domain[-1].ip='94.131.119.85'
|
||||
uci commit dhcp
|
||||
|
||||
echo "Crod task add restart service yotubeUnblock..."
|
||||
|
||||
cronTask="0 4 \* \* \* service youtubeUnblock restart"
|
||||
str=$(grep -i "$cronTask" /etc/crontabs/root)
|
||||
if [ ! $str ]
|
||||
then
|
||||
echo "$cronTask" >> /etc/crontabs/root
|
||||
fi
|
||||
|
||||
echo "Restart service..."
|
||||
|
||||
service youtubeUnblock restart
|
||||
|
||||
Reference in New Issue
Block a user