summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-12-05 15:24:53 +0100
committerDaniel Baumann <daniel@debian.org>2010-12-05 15:24:53 +0100
commit7be98b8ec2ab9346243aac6f7ac5972de4eff456 (patch)
treea8c8a9252c5d367bb8107c36a2bb58e051a422ef
parentc5f79482d3f272115b3632f0091b444b0f0557a6 (diff)
downloadvyos-live-build-7be98b8ec2ab9346243aac6f7ac5972de4eff456.tar.gz
vyos-live-build-7be98b8ec2ab9346243aac6f7ac5972de4eff456.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