2013-11-07 04:25:34 +00:00
|
|
|
#!/bin/bash
|
2013-02-13 22:16:00 +00:00
|
|
|
|
2014-03-29 03:28:22 +00:00
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
2013-02-13 22:16:00 +00:00
|
|
|
if [ "i386" = "$ARCH" ]; then
|
|
|
|
basearch=i386
|
|
|
|
arch=i686
|
|
|
|
elif [ "amd64" = "$ARCH" ]; then
|
|
|
|
basearch=x86_64
|
|
|
|
arch=x86_64
|
|
|
|
else
|
|
|
|
echo "********************"
|
|
|
|
echo "Unknown arch '$ARCH'"
|
|
|
|
echo "********************"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo $basearch > /etc/yum/vars/basearch
|
|
|
|
echo $arch > /etc/yum/vars/arch
|