mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-08 12:54:54 +01:00
Update 99-run.sh
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
#!/usr/bin/env bashio
|
#!/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')
|
INTERFACE_NAME=$(ip route get 8.8.8.8 | sed -nr 's/.*dev ([^\ ]+).*/\1/p')
|
||||||
bashio::log.blue "INTERFACE_NAME=$INTERFACE_NAME"
|
bashio::log.blue "Autodetection : INTERFACE_NAME=$INTERFACE_NAME"
|
||||||
|
fi
|
||||||
|
|
||||||
bashio::log.info "Starting..."
|
bashio::log.info "Starting..."
|
||||||
/usr/bin/python3 /opt/arpspoof/arpspoof.py
|
/usr/bin/python3 /opt/arpspoof/arpspoof.py
|
||||||
|
|||||||
Reference in New Issue
Block a user