From 34e8b6bc25856258f0f5d071ab0a7921f89bfbe2 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 7 Dec 2021 16:49:52 +0100 Subject: [PATCH] Update 99-run.sh --- arpspoof/rootfs/scripts/99-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arpspoof/rootfs/scripts/99-run.sh b/arpspoof/rootfs/scripts/99-run.sh index b92412943..189fe4877 100644 --- a/arpspoof/rootfs/scripts/99-run.sh +++ b/arpspoof/rootfs/scripts/99-run.sh @@ -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