. /etc/init.d/tc-functions

if [ "`getBuild`" == "x86" ]; then
 LIBDIR="i386-linux-gnu"
elif [ "`getBuild`" == "armv7" ]; then
 LIBDIR="arm-linux-gnueabihf"
elif [ "`getBuild`" == "x86_64" ]; then
 LIBDIR=x86_64-linux-gnu
fi

if [ -f /usr/lib/"$LIBDIR"/blas/libblas.so.3 ]; then
	/bb/ln -sf /usr/lib/"$LIBDIR"/blas/libblas.so.3 /usr/lib/"$LIBDIR"/libblas.so.3
fi

if [ -f /usr/lib/libblas/libblas.so.3 ]; then
	/bb/ln -sf /usr/lib/libblas/libblas.so.3 /usr/lib/libblas.so.3
	/bb/ln -sf /usr/lib/libblas.so.3 /usr/lib/libblas.so.3gf
fi

exit 0