From f2404d5f76dbfbc67883f93a9cf1f2ceb675e93f Mon Sep 17 00:00:00 2001 From: yangxuan8282 Date: Sat, 19 Nov 2016 15:02:38 +0800 Subject: [PATCH] add support for rpi3 --- debtap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debtap b/debtap index 702a333..0775477 100755 --- a/debtap +++ b/debtap @@ -39,11 +39,13 @@ elif [[ "$1" == "-u" ]] || [[ "$1" = "--u" ]] || [[ "$1" == "-update" ]] || [[ " _arch=i386 elif [[ "$(uname -m)" == "x86_64" ]]; then _arch=amd64 + elif [[ "$(uname -m)" == "armv7l" ]]; then + _arch=armhf fi ubuntu_latest_stable_version=`curl -s http://packages.ubuntu.com | grep option | gawk -F '=' '{print $2}' | gawk '{print $1}' | grep -v option | tac | sed -n 3'{p;q;}' | sed s'/\("\|-updated\|-backports\)//g'` curl -C - -f http://ftp.debian.org/debian/dists/sid/main/Contents-$_arch.gz > /var/cache/debtap/debian-packages-files.gz gzip -df /var/cache/debtap/debian-packages-files.gz - curl -C - -f http://archive.ubuntu.com/ubuntu/dists/$ubuntu_latest_stable_version/Contents-$_arch.gz > /var/cache/debtap/ubuntu-packages-files.gz + curl -C - -f -L http://ports.ubuntu.com/ubuntu-ports/dists/$ubuntu_latest_stable_version/Contents-$_arch.gz > /var/cache/debtap/ubuntu-packages-files.gz gzip -df /var/cache/debtap/ubuntu-packages-files.gz if [[ $(echo $?) != 0 ]]; then echo -e "${red}Synchronization failed. Exiting...${NC}"; exit 1