#!/bin/bash # to download and install # wget -q --user guest --password killer23 -O - https://files.openwrt.host/auto/installWormhole | bash ARCH=$1 if [ -z $ARCH ]; then ARCH=$(uname -m) echo "Auto Detecting plattform: $ARCH" fi if [ $ARCH = "aarch64" ]; then ARCH=wormhole-static-arm64 elif [ $ARCH = "arm" ]; then ARCH=wormhole-static-arm elif [ $ARCH = "armv7l" ]; then ARCH=wormhole-static-armv7 elif [ $ARCH = "armv6l" ]; then ARCH=wormhole-static-armv6 elif [ $ARCH = "x86_64" ]; then ARCH=wormhole-static-x64 elif [ $ARCH = "mips" ]; then ARCH=wormhole-static-mips elif [ $ARCH = "amd64win" ]; then ARCH=wormhole.exe else echo "bad input" exit 0 fi echo "Downloading and installing wormhole..." wget -q --user guest --password killer23 https://files.openwrt.host/auto/wormhole/$ARCH -O /usr/bin/wormhole chmod +x /usr/bin/wormhole echo "done"