winbox.sh 422 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=winbox
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6 7 8 9 10
DESCRIPTION='Winbox from the official site'
URL="https://mikrotik.com/download"

. $(dirname $0)/common.sh

11 12 13 14
if [ "$VERSION" = "*" ] ; then
    VERSION=$(eget -O- https://mikrotik.com/download | grep WinBox_Linux.zip | awk -F'/' '{print $6}' | head -n1)
fi
PKGURL="https://download.mikrotik.com/routeros/winbox/$VERSION/WinBox_Linux.zip"
15

16
install_pack_pkgurl