oneshot_linux/fix_libs.sh
2023-01-03 15:04:52 -05:00

16 lines
260 B
Bash
Executable file

if [ -d backuplibs ]; then
echo "Backup folder already exists."
else
mkdir backuplibs
fi
if [ -f librt.so* ]; then
cp *.so* ./backuplibs
rm librt.so*
else
echo "No libs found."
fi
for i in *.so*; do
[ -e /usr/lib32/$i ] && ln -sf /usr/lib32/$i $i
done