Update 99-run.sh

This commit is contained in:
Alexandre
2021-12-07 16:49:52 +01:00
committed by GitHub
parent 651437d827
commit 34e8b6bc25

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bashio
# Autodefine if not defined
if [ -z INTERFACE_NAME ]; then
if [ ! -z INTERFACE_NAME ]; then
export INTERFACE_NAME=$(ip route get 8.8.8.8 | sed -nr 's/.*dev ([^\ ]+).*/\1/p')
bashio::log.blue "Autodetection : INTERFACE_NAME=$INTERFACE_NAME"
fi