From: Mike Frysinger Date: Tue, 5 Jan 2010 02:53:24 +0000 (-0800) Subject: add ppc/ppc64 support X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9d8e5f77562fbf28f6619cea98a3924a76fd15ae;p=home.git add ppc/ppc64 support --- diff --git a/.bin/custom-chroot b/.bin/custom-chroot index ab69e92..a96b181 100755 --- a/.bin/custom-chroot +++ b/.bin/custom-chroot @@ -43,15 +43,14 @@ done get_type() { case $(file "$1") in - *x86-64*) echo x86_64;; - *"Intel 80386"*) echo i386;; + *x86-64*) echo x86_64;; + *"Intel 80386"*) echo i386;; + *32-bit*PowerPC*) echo ppc;; + *64-bit*PowerPC*) echo ppc64;; esac } bin_dst=$(get_type bin/bash) -bin_src=$(get_type /bin/bash) -if [[ ${bin_dst} == ${bin_src} ]] ; then - setarch= -else +if [[ -n ${bin_dst} ]] && type -P setarch &>/dev/null ; then setarch="setarch ${bin_dst}" fi