#!/bin/bash # ./run-built-arm-image.sh KERNEL ROOTFS [VERSION] KERNEL="$1" ROOTFS="$2" VERSION="factory" if [ -n "$3" ]; then VERSION="$3" fi find_tunctl() { for path in `which tunctl` /{usr/,usr/local/}{bin,sbin}/tunctl; do if [ -x "$path" ]; then return 0 fi done return 1 } if ! find_tunctl; then cat >&2 <