winbox/entrypoint.sh
Merith 73f4ee47cb
All checks were successful
Build Docker Image on Commit / build-and-publish (push) Successful in 23s
winbox download
2025-06-05 06:07:01 +00:00

17 lines
449 B
Bash

#!/bin/bash
# Wait until internet is available
while ! ping -c1 1.1.1.1 &>/dev/null; do
echo "Waiting for internet connection..."
sleep 5
done
if [ ! -f "/data/winbox64.exe" ]; then
echo "Winbox executable not found in /data. Downloading..."
mkdir -p /data
wget -O /data/winbox64.exe https://download.mikrotik.com/routeros/winbox/3.42/winbox64.exe
else
echo "Winbox executable found in /data."
fi
wine64 /tmp/winbox64.exe