From de1cfab8cdde0cea245ae6978fee2bd32af0af5a Mon Sep 17 00:00:00 2001 From: Vadim Vetrov Date: Sat, 14 Sep 2024 17:38:37 +0300 Subject: [PATCH] Create config file in uci-defaults This may solve #114 --- youtubeUnblock/files/etc/uci-defaults/99-youtubeUnblock.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtubeUnblock/files/etc/uci-defaults/99-youtubeUnblock.sh b/youtubeUnblock/files/etc/uci-defaults/99-youtubeUnblock.sh index ab8f3c0..ca99412 100644 --- a/youtubeUnblock/files/etc/uci-defaults/99-youtubeUnblock.sh +++ b/youtubeUnblock/files/etc/uci-defaults/99-youtubeUnblock.sh @@ -1,5 +1,6 @@ #!/bin/sh [[ ! "$(uci -q get youtubeUnblock.youtubeUnblock)" == "" ]] && exit 0 +touch /etc/config/youtubeUnblock uci batch << EOI set youtubeUnblock.youtubeUnblock='youtubeUnblock' set youtubeUnblock.youtubeUnblock.frag='tcp' @@ -25,4 +26,4 @@ add_list youtubeUnblock.youtubeUnblock.sni_domains='l.google.com' EOI uci commit /etc/init.d/firewall restart &>/dev/null -exit 0 # IMPORTANT, IF WE NO PUT THIS, WILL EXECUTED ENDLESSLY +exit 0