forked from metal0/catbot-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart
More file actions
executable file
·52 lines (40 loc) · 1.51 KB
/
start
File metadata and controls
executable file
·52 lines (40 loc) · 1.51 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
#
# This script starts IPC server, account generator, etc..
#
if [ $EUID == 0 ]; then
echo "This script must not be run as root"
exit
fi
if ! [ -d "./account-generator" ]; then
echo "You need to run install-catbots first."
exit
fi
if [ ! -d "./just-disable-vac" ]; then
echo "You need to run install-catbots again."
exit
fi
xhost +
ipcserver=$( ps faux | grep '/opt/cathook/ipc/bin/server' | grep -vw grep | awk '{ print $2 }' );
[ -z "$ipcserver" ] && /opt/cathook/ipc/bin/server -s >/dev/null &
[ -z "$ipcserver" ] && echo $! >/tmp/cat-ipc-server.pid
if [ -e "/tmp/ncat-cathook-webpanel.pid" ] && ps -p `cat "/tmp/ncat-cathook-webpanel.pid"` >/dev/null; then
echo Account generator already running.
else
pushd cathook-ipc-web-panel
sudo STEAM_LD_LIBRARY_PATH="/opt/steamapps/common/Team\ Fortress\ 2/bin/" STEAM_LD_PRELOAD="$(cd ../ && pwd)/just-disable-vac/build/bin64/libvpcfs.so.0:$(cd ../ && pwd)/just-disable-vac/build/bin32/libvpcfs.so.0:shaderapiempty.so" bash ./run.sh &
popd
fi
if [ -e "/tmp/ncat-account-generator.pid" ] && ps -p `cat "/tmp/ncat-account-generator.pid"` >/dev/null; then
echo Account generator already running.
else
pushd account-generator
node app >/tmp/cathook-accgen.log &
popd
fi
sleep 5;
echo "Account generator password: `cat /tmp/cat-accgen2-password`"
echo "IPC Web Panel password: `cat /tmp/cat-webpanel-password`"
echo "Fixing NVIDIA crash"
sudo chmod 700 /opt/steamapps/common/Team\ Fortress\ 2/tf/glshaders.cfg
echo "Fixed NVIDIA crash"