mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-01-15 11:05:18 +00:00
parent
0c08d7c5f2
commit
de1cfab8cd
@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[[ ! "$(uci -q get youtubeUnblock.youtubeUnblock)" == "" ]] && exit 0
|
[[ ! "$(uci -q get youtubeUnblock.youtubeUnblock)" == "" ]] && exit 0
|
||||||
|
touch /etc/config/youtubeUnblock
|
||||||
uci batch << EOI
|
uci batch << EOI
|
||||||
set youtubeUnblock.youtubeUnblock='youtubeUnblock'
|
set youtubeUnblock.youtubeUnblock='youtubeUnblock'
|
||||||
set youtubeUnblock.youtubeUnblock.frag='tcp'
|
set youtubeUnblock.youtubeUnblock.frag='tcp'
|
||||||
@ -25,4 +26,4 @@ add_list youtubeUnblock.youtubeUnblock.sni_domains='l.google.com'
|
|||||||
EOI
|
EOI
|
||||||
uci commit
|
uci commit
|
||||||
/etc/init.d/firewall restart &>/dev/null
|
/etc/init.d/firewall restart &>/dev/null
|
||||||
exit 0 # IMPORTANT, IF WE NO PUT THIS, WILL EXECUTED ENDLESSLY
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user