From 4daf49c8d2770a24cbbd935e6b81dc4b5160ad65 Mon Sep 17 00:00:00 2001 From: CodeRoK7 <58553260+CodeRoK7@users.noreply.github.com> Date: Thu, 27 Feb 2025 08:50:24 +0000 Subject: [PATCH] Add file off_awg_config.sh --- off_awg_config.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 off_awg_config.sh diff --git a/off_awg_config.sh b/off_awg_config.sh new file mode 100644 index 0000000..95e5521 --- /dev/null +++ b/off_awg_config.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +DIR="/etc/config" +DIR_BACKUP="/root/backup2" +config_files="network +firewall" + + +if [ -d "$DIR_BACKUP" ] +then + echo "Restore configs..." + for file in $config_files + do + cp -f "$DIR_BACKUP/$file" "$DIR/$file" + done + + rm -rf "$DIR_BACKUP" +fi + +echo "Stop and disabled autostart Podkop..." +service podkop disable +service podkop stop + +echo "Run and enabled autostart youtubeUnblock..." +service youtubeUnblock enable +service youtubeUnblock start + +printf "\033[32;1mRestart firewall and network...\033[0m\n" +service firewall restart +service network restart + +printf "\033[32;1mOff configured completed...\033[0m" \ No newline at end of file