[php]
#!/bin/sh
#
#Bitte anpassen:
NAME=USERNAME
PASS=PASSWORT
HLDSDIR=hlds
SOURCEDIR=hlds2
VERIFYFLAG=""
menu () {
clear
echo "Steam-Updater 1.0"
echo "Which game should we update?"
echo "1) Counter-Strike"
echo "2) Team-Fortress Classic"
echo "3) Day of Defeat"
echo "4) Death-Match Classic"
echo "5) Half-Life Deathmatch"
echo "6) Counter-Strike Condition Zero"
echo "7) Ricochet"
echo "8) Counter-Strike:Source"
echo "9) Half-Life2 Deathmatch"
echo ""
echo "0) quit"
echo ""
echo -n "Enter a digit: "
}
menu
while read GAME
do
if [ "$GAME" == "0" ]
then
exit 0
fi
echo "Verify_all? (y/N)"
read VERIFYFLAG
if [ "$VERIFYFLAG" == "y" ]
then
VERIFY=-verify_all
else
VERIFY=""
fi
case "$GAME" in
1)
./steam -command update -game "cstrike" -dir $HLDSDIR -username $NAME -password $PASS $VERIFY
exit 0
;;
2)
./steam -command update -game "tfc" -dir $HLDSDIR -username $NAME -password $PASS $VERIFY
exit 0
;;
3)
./steam -command update -game "dod" -dir $HLDSDIR -username $NAME -password $PASS $VERIFY
exit 0
;;
4)
./steam -command update -game "dmc" -dir $HLDSDIR -username $NAME -password $PASS $VERIFY
exit 0
;;
5)
./steam -command update -game "valve" -dir $HLDSDIR -username $NAME -password $PASS $VERIFY
exit 0
;;
6)
./steam -command update -game "czero" -dir $HLDSDIR -username $NAME -password $PASS $VERIFY
exit 0
;;
7)
./steam -command update -game "ricochet" -dir $HLDSDIR -username $NAME -password $PASS $VERIFY
exit 0
;;
8)
./steam -command update -game "Counter-Strike Source" -dir $SOURCEDIR -username $NAME -password $PASS $VERIFY
exit 0
;;
9)
./steam -command update -game "hl2mp" -dir $SOURCEDIR -username $NAME -password $PASS $VERIFY
exit 0
;;
0)
exit 0
;;
*)
menu
;;
esac
done
exit 0
[/php]