mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-21 08:11:50 +02:00
Update 99-run.sh
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# Autodefine if not defined
|
# Autodefine if not defined
|
||||||
if [ -n "$INTERFACE_NAME" ]; then
|
if [ -n "$INTERFACE_NAME" ]; then
|
||||||
|
# shellcheck disable=SC2155
|
||||||
export INTERFACE_NAME="$(ip route get 8.8.8.8 | sed -nr 's/.*dev ([^\ ]+).*/\1/p')"
|
export INTERFACE_NAME="$(ip route get 8.8.8.8 | sed -nr 's/.*dev ([^\ ]+).*/\1/p')"
|
||||||
bashio::log.blue "Autodetection : INTERFACE_NAME=$INTERFACE_NAME"
|
bashio::log.blue "Autodetection : INTERFACE_NAME=$INTERFACE_NAME"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user