2020-11-01 00:38:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
if [ "$1" == "" ]
|
|
|
|
then
|
|
|
|
echo "DISABLED|BAPSicle Server"
|
|
|
|
echo "----"
|
|
|
|
if curl --output /dev/null --silent --head --fail --max-time 1 "http://localhost:13500"
|
|
|
|
then
|
2021-04-17 20:28:57 +00:00
|
|
|
echo "Presenter"
|
|
|
|
echo "Server"
|
2020-11-01 00:38:46 +00:00
|
|
|
echo "----"
|
|
|
|
echo "Stop Server"
|
|
|
|
else
|
2021-04-17 20:28:57 +00:00
|
|
|
echo "DISABLED|Presenter"
|
|
|
|
echo "DISABLED|Server"
|
2020-11-01 00:38:46 +00:00
|
|
|
echo "----"
|
|
|
|
echo "Start Server"
|
|
|
|
fi
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
if [ "$1" == "Stop Server" ]
|
|
|
|
then
|
|
|
|
curl "http://localhost:13500/quit"
|
|
|
|
else
|
|
|
|
./BAPSicle "$1"
|
|
|
|
fi
|