summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorLars Müller2007-01-27 22:10:22 +0100
committerLars Müller2007-01-27 22:10:22 +0100
commitee820e3b8aa9e8b61748164f35d1cd3f373b9135 (patch)
tree3ef28c86cec59459e807348a3635a84acdf7fad0 /installer
parentDo not check if smart or any other meta packager is available in the (diff)
downloadcore-ee820e3b8aa9e8b61748164f35d1cd3f373b9135.tar.gz
core-ee820e3b8aa9e8b61748164f35d1cd3f373b9135.tar.xz
core-ee820e3b8aa9e8b61748164f35d1cd3f373b9135.zip
Redefine the SLX_INST_ARCH as Debian based systems use amd64 instead of
x86_64. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@644 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/slxossetup8
1 files changed, 7 insertions, 1 deletions
diff --git a/installer/slxossetup b/installer/slxossetup
index 94ce5789..d8bb3553 100755
--- a/installer/slxossetup
+++ b/installer/slxossetup
@@ -478,7 +478,13 @@ function slxossetup()
SLX_INST_ARCH=$( uname -m)
case "${SLX_INST_ARCH}" in
i*86) SLX_INST_ARCH="${X86_ARCH}" ;;
- x86_64) SLX_INST_ARCH='x86_64' ;;
+ x86_64)
+ # Redefine SLX_INST_ARCH in the case of Debian
+ # based systems.
+ case "${SLX_SYSTEM_BASENAME}" in
+ *debian*|*ubuntu*) SLX_INST_ARCH='amd64' ;;
+ esac
+ ;;
*)
ErrorMsg 1 "Unsupported machine hardware ${SLX_INST_ARCH}."
;;