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