Files
hassio-addons/arpspoof/rootfs/scripts/99-run.sh
2021-12-07 16:19:29 +01:00

11 lines
308 B
Bash

#!/usr/bin/env bashio
# Autodefine if not defined
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
bashio::log.info "Starting..."
/usr/bin/python3 /opt/arpspoof/arpspoof.py