BugFix-Arm compatibility (#31)

fix an issue reported in IRC with cubox-i4 not detecting the cpu
correctly
This commit is contained in:
Mafoo 2016-08-05 15:10:39 +01:00 committed by FusionPBX
parent faa194d602
commit 9bb09c15d2
1 changed files with 2 additions and 2 deletions

4
debian/install.sh vendored
View File

@ -48,13 +48,13 @@ if [ $CPU_CHECK = true ]; then
OS_bits=$(uname -m) OS_bits=$(uname -m)
OS_arch=$(uname -m) OS_arch=$(uname -m)
CPU_bits='i686' CPU_bits='i686'
if [ $(grep -o -w 'lm' /proc/cpuinfo) = 'lm' ]; then if [ "$(grep -o -w 'lm' /proc/cpuinfo)" = 'lm' ]; then
CPU_bits='x86_64' CPU_bits='x86_64'
fi fi
if [ $USE_SWITCH_SOURCE = false ]; then if [ $USE_SWITCH_SOURCE = false ]; then
if [ $OS_arch = 'armv7l' ]; then if [ $OS_arch = 'armv7l' ]; then
if [ $USE_SWITCH_PACKAGE_UNOFFICIAL_ARM = false && OS_bits = 'i686' ]; then if [ $USE_SWITCH_PACKAGE_UNOFFICIAL_ARM = false ] && [ OS_bits = 'i686' ]; then
error "You are using a 32bit arm OS this is unsupported" error "You are using a 32bit arm OS this is unsupported"
warning " please rerun with either --use-switch-package-unofficial-arm or --use-switch-source" warning " please rerun with either --use-switch-package-unofficial-arm or --use-switch-source"
exit 3 exit 3