Cleanup commit

This commit is contained in:
Fredrik Baberg
2023-01-11 18:43:38 +01:00
commit 7cef46e0d4
69 changed files with 1313 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/execlineb -S0
# ==============================================================================
# Add-on: aiortc
# Take down the S6 supervision tree when aiortc fails
# ==============================================================================
if -n { s6-test $# -ne 0 }
if -n { s6-test ${1} -eq 256 }
s6-svscanctl -t /var/run/s6/services

View File

@@ -0,0 +1,15 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Add-on: aiortc
# Runs aiortc
# ==============================================================================
declare -a options
if bashio::config.has_value 'webrtc_arguments'; then
options+="$(bashio::config 'webrtc_arguments')"
fi
bashio::log.info "Starting aiortc..."
# Run aiortc
exec python3 /aiortc/examples/webcam/webcam.py "${options[@]}"