New Script: parlink.sh: autocycle parsec crash
Former-commit-id: 41e3e9b64294d062d4b3c59b04f309b11ea5e011
This commit is contained in:
parent
a06bde43f0
commit
effe441b56
18
parlink.sh
Executable file
18
parlink.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
PARSEC_BIN="/usr/bin/parsecd"
|
||||
PARSEC_ARGS="app_daemon=1"
|
||||
PARSEC_URL="https://parsecgaming.com"
|
||||
PARSEC_PROCESS=$(ps -A | grep -c parsecd)
|
||||
|
||||
while [ ${PARSEC_PROCESS} != "1" ];do
|
||||
if [ ! -f ${PARSEC_BIN} ];then
|
||||
xdg-open ${PARSEC_URL}
|
||||
elif [ ${PARSEC_PROCESS} = "1" ];then
|
||||
${PARSEC_BIN} ${PARSEC_ARGS}
|
||||
|
||||
else
|
||||
${PARSEC_BIN} ${PARSEC_ARGS}
|
||||
fi
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user