diff options
author | Daniel Baumann <daniel@debian.org> | 2010-12-05 15:24:53 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2010-12-05 15:24:53 +0100 |
commit | 7be98b8ec2ab9346243aac6f7ac5972de4eff456 (patch) | |
tree | a8c8a9252c5d367bb8107c36a2bb58e051a422ef | |
parent | c5f79482d3f272115b3632f0091b444b0f0557a6 (diff) | |
download | vyos-live-build-7be98b8ec2ab9346243aac6f7ac5972de4eff456.tar.gz vyos-live-build-7be98b8ec2ab9346243aac6f7ac5972de4eff456.zip |
Making default argument guessing for non-debian systems a bit more robust.
-rwxr-xr-x | functions/defaults.sh | 10 |
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 |