mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2026-01-27 12:40:35 +03:00
26 lines
453 B
Bash
26 lines
453 B
Bash
#!/bin/sh
|
|
|
|
URL="https://raw.githubusercontent.com/CodeRoK7/RouterichAX3000_configs/refs/heads/main"
|
|
DIR="/etc/config"
|
|
DIR_BACKUP="/root/backup"
|
|
config_files="dhcp
|
|
youtubeUnblock
|
|
https-dns-proxy"
|
|
|
|
|
|
mkdir $DIR_BACKUP
|
|
|
|
for file in $config_files
|
|
do
|
|
cp -f "$DIR/$file" "$DIR_BACKUP/$file"
|
|
done
|
|
|
|
for file in $config_files
|
|
do
|
|
wget -O "$DIR/$file" "$URL/$file"
|
|
done
|
|
|
|
|
|
service youtubeUnblock restart
|
|
service https-dns-proxy restart
|
|
service dnsmasq restart |