ha-3dprinter-addons/aiortc/rootfs/etc/cont-init.d/aiortc.sh
2022-07-07 17:37:11 +02:00

14 lines
421 B
Bash

#!/usr/bin/with-contenv bashio
# ==============================================================================
# Add-on: aiortc
# Configures aiortc configuration
# ==============================================================================
mkdir -p /data/aiortc
touch /data/aiortc/aiortc.conf
if bashio::config.has_value 'webrtc_arguments'; then
bashio::config 'webrtc_arguments' > /data/aiortc/aiortc.conf
fi