summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-12-05 15:24:53 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:20:38 +0100
commit4a97d539c911e92d07af9f716ae86f357e92ca3d (patch)
treea8c8a9252c5d367bb8107c36a2bb58e051a422ef
parent51944c015f98cf25b3f8a51ccd35a8c77a674d27 (diff)
downloadvyos-live-build-4a97d539c911e92d07af9f716ae86f357e92ca3d.tar.gz
vyos-live-build-4a97d539c911e92d07af9f716ae86f357e92ca3d.zip
Making default argument guessing for non-debian systems a bit more robust.
-rwxr-xr-xfunctions/defaults.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 5419ca10a..da8cef404 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -259,8 +259,14 @@ Set_defaults ()
LB_ARCHITECTURES="amd64"
;;
*)
- Echo_warning "Can't determine architecture, assuming i386"
- LB_ARCHITECTURES="i386"
+ if [ -e /lib64 ]
+ then
+ LB_ARCHITECTURES="amd64"
+ else
+ LB_ARCHITECTURES="i386"
+ fi
+
+ Echo_warning "Can't determine architecture, assuming ${LB_ARCHITECTURES}"
;;
esac
fi