Commit 332a9e16 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm prescription: add i586-support

parent 04f60aef
#!/bin/sh
[ "$1" != "--run" ] && echo "Add 32 bit support on 64 bit system" && exit
[ "$(epm print info -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
vendor="$(epm print info -s)"
case "$vendor" in
"alt")
if epm --quiet repo list | grep -q "x86_64-i586 classic" ; then
#[ -n "$verbose" ] && info "This system is ready to install 32bit packages"
exit 0
else
epm repo add "$(epm --quiet repo list | grep "x86_64 classic" | sed -e 's|x86_64 |x86_64-i586|')"
epm update
fi
;;
"deb")
if a= dpkg --print-foreign-architectures | grep -q "i386" ; then
#[ -n "$verbose" ] && info "This system is ready to install 32bit packages"
exit 0
else
a= dpkg --add-architecture i386
epm update
fi
;;
*)
info "Unsupported $(epm print info -e) system. Just skipping the operation."
exit
;;
esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment