From: kremlin Date: Sat, 11 Feb 2017 05:06:12 +0000 (-0600) Subject: Merge branch 'master' of ssh://uglyman.kremlin.cc:/var/www/htdocs/git/bbb-usb X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=bbb-usb.git;a=commitdiff_plain;h=9ad7f01e6dc779d59b6b39431f194f2d34e455d4;hp=564041fb86a55e392d72952144053da7545cfd6c Merge branch 'master' of ssh://uglyman.kremlin.cc:/var/www/htdocs/git/bbb-usb --- diff --git a/misc/install.sh b/misc/install.sh index 859f38e..a36aecb 100755 --- a/misc/install.sh +++ b/misc/install.sh @@ -1,4 +1,20 @@ #!/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