Skip to content
Snippets Groups Projects
Commit b0bde8f5 authored by Ulrich Schwickerath's avatar Ulrich Schwickerath
Browse files

support Raspberian 32bit

parent e7ef1f13
No related branches found
No related tags found
No related merge requests found
Pipeline #8351433 passed
...@@ -10,5 +10,12 @@ else ...@@ -10,5 +10,12 @@ else
export OS_RELEASE=$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"'| cut -d\. -f1) export OS_RELEASE=$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"'| cut -d\. -f1)
fi fi
if [ "x$OS_ARCH" = "xx86_64" -a "x$LEGACY" != "x" ]; then OS_ARCH='i386'; fi if [ "x$OS_ARCH" = "xx86_64" -a "x$LEGACY" != "x" ]; then OS_ARCH='i386'; fi
if [ "x$OS_ARCH" == "xaarch64" ]; then
file /bin/bash | grep 32-bit > /dev/null 2>&1
rc=$?
if [ $rc -eq 0 ]; then
OS_ARCH=armf
fi
fi
export OS_ARCH export OS_ARCH
echo $OS_ARCH echo $OS_ARCH
...@@ -10,6 +10,12 @@ else ...@@ -10,6 +10,12 @@ else
export OS_RELEASE=$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"'| cut -d\. -f1) export OS_RELEASE=$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"'| cut -d\. -f1)
fi fi
if [ "x$OS_ARCH" == "xx86_64" -a "x$LEGACY" != "x" ]; then OS_ARCH='i386'; fi if [ "x$OS_ARCH" == "xx86_64" -a "x$LEGACY" != "x" ]; then OS_ARCH='i386'; fi
if [ "x$OS_ARCH" == "xaarch64" ]; then
file /bin/bash | grep 32-bit > /dev/null 2>&1
rc=$?
if [ $rc -eq 0 ]; then
OS_ARCH=armf
fi
fi
export OS_TAG=`echo ${OS_ID}-${OS_ARCH}-${OS_RELEASE}|tr '[:upper:]' '[:lower:]'` export OS_TAG=`echo ${OS_ID}-${OS_ARCH}-${OS_RELEASE}|tr '[:upper:]' '[:lower:]'`
echo $OS_TAG echo $OS_TAG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment