diff options
Diffstat (limited to 'multiarch-platform')
-rwxr-xr-x | multiarch-platform | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/multiarch-platform b/multiarch-platform index e9e2da5..00df2fa 100755 --- a/multiarch-platform +++ b/multiarch-platform @@ -1,7 +1,11 @@ #!/bin/sh arch=`uname -m` +`perl -e '$le = unpack("h*", pack("s", 1)) =~ /^1/; exit $le;'` +le=$? case $arch in i?86) arch=i386;; +mips*) [ $le -eq 1 ] && arch="$arch"el ;; +arm) [ $le -eq 0 ] && arch="$arch"eb ;; esac os=`uname -s` case $os in |