This commit is contained in:
root 2017-09-27 17:48:36 +08:00
parent bb47e55e74
commit 20aee050b0

14
aq.sh
View File

@ -154,15 +154,16 @@ check_os() {
fi fi
vvv=$(echo $OS_VER | cut -b1) vvv=$(echo $OS_VER | cut -b1)
test $OS = "ubuntu" && vvv=$(echo $OS_VER | awk -F '.' '{print$1}') test $OS = "ubuntu" && vvv=$(echo $OS_VER | awk -F '.' '{print$1}')
case $OS in
"debian")
arch=`uname -m` arch=`uname -m`
test "$arch" = "i686" && arch=x86 test "$arch" = "i686" && arch=x86
test "$arch" = "i586" && arch=x86
test "$arch" = "i386" && arch=x86 test "$arch" = "i386" && arch=x86
test "$arch" = "i486" && arch=x86 test "$arch" = "i486" && arch=x86
test "$arch" = "i586" && arch=x86
test "$arch" = "x86_64" && arch=x64 test "$arch" = "x86_64" && arch=x64
test "$arch" = "armv7l" && arch=arm test "$arch" = "armv7l" && arch=arm
test "$arch" = "armv6l" && arch=arm
case $OS in
"debian")
case $vvv in case $vvv in
"8") "8")
: :
@ -184,13 +185,6 @@ check_os() {
APT="$APT1" APT="$APT1"
;; ;;
"ubuntu") "ubuntu")
arch=`uname -m`
test "$arch" = "i686" && arch=x86
test "$arch" = "i386" && arch=x86
test "$arch" = "i486" && arch=x86
test "$arch" = "i586" && arch=x86
test "$arch" = "x86_64" && arch=x64
test "$arch" = "armel7" && arch=arm
case $vvv in case $vvv in
"16") "16")
APT1="libbz2-dev libgcrypt-dev" APT1="libbz2-dev libgcrypt-dev"