mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-08 15:01:00 +02:00
align to cont-init.d
This commit is contained in:
10
arpspoof/rootfs/etc/cont-init.d/99-run.sh
Normal file
10
arpspoof/rootfs/etc/cont-init.d/99-run.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user