#!/bin/ksh EUID=`id -g` if [[ $EUID -ne 0 ]]; then echo "run me as root!" exit 1 fi set -e cd $(dirname "$0")/.. cp misc/armmake /usr/local/bin/armmake chmod +x /usr/local/bin/armmake if [[ -a /sys/arch/armv7/omap/ammusb.c && $1 != "-f" ]]; then echo "file already exists! pass -f to overwrite" exit 1 fi cp -R src/* /usr/src