Update entrypoint

Change entrypoint to include playback enviroment variable
This commit is contained in:
M0VUB 2023-08-06 22:40:28 +01:00 committed by GitHub
parent 4cad03f2f5
commit ee789c8846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,11 @@
#!/bin/sh #!/bin/sh
cd /opt/hblink3 cd /opt/hblink3
if [ "$PARROT_ENABLE" == 1 ]
then
echo 'Staring HBlink with Parrot.....'
python /opt/hblink3/bridge.py -c hblink.cfg -r rules.py &
python /opt/hblink3/playback.py -c playback.cfg
else
python /opt/hblink3/bridge.py -c hblink.cfg -r rules.py python /opt/hblink3/bridge.py -c hblink.cfg -r rules.py
fi