mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-06 11:54:53 +01:00
Merge branch 'master' of https://github.com/alexbelgium/hassio-addons
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bashio
|
||||
|
||||
# Autodefine if not defined
|
||||
if [ -z INTERFACE_NAME ]; then
|
||||
INTERFACE_NAME=$(ip route get 8.8.8.8 | sed -nr 's/.*dev ([^\ ]+).*/\1/p')
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user