-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathl4d2cfg.sh
33 lines (24 loc) · 1.21 KB
/
l4d2cfg.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
echo "Start this script via screen command, example:"
echo "screen -mdSU cfg sh ./l4d2cfg.sh \"install dir\""
echo " "
sleep 3
if [ $# -eq 0 ]; then
echo "No arguments provided"
exit 1
fi
# Var
delay=60
install=$1
host=https://raw.githubusercontent.com/Anime4000/HentaiRape/master/left4dead2/host.txt
motd=https://raw.githubusercontent.com/Anime4000/HentaiRape/master/left4dead2/motd.txt
banid=https://raw.githubusercontent.com/Anime4000/HentaiRape/master/left4dead2/cfg/banned_user.cfg
admin=https://raw.githubusercontent.com/Anime4000/HentaiRape/master/left4dead2/addons/sourcemod/configs/admins.cfg
# Run infinite update
echo "Update every 1 minute"
while true; do wget -q $host -O "$install/left4dead2/host.txt"; echo "UPDATED: Banner"; sleep $delay; done &
while true; do wget -q $motd -O "$install/left4dead2/motd.txt"; echo "UPDATED: MOTD"; sleep $delay; done &
while true; do wget -q $banid -O "$install/left4dead2/cfg/banned_user.cfg"; echo "UPDATED: Ban list"; sleep $delay; done &
while true; do wget -q $admin -O "$install/left4dead2/addons/sourcemod/configs/admins.cfg"; echo "UPDATED: Admin list"; sleep $delay; done &
# Linux equivalent to DOS pause
read -n 1 -r -p "Press any key to exit..." key