/usr/local/sbin/librestore.sh
#!/bin/bash for TARGDIR in /usr/lib /usr/local/lib do for TARGLIB in `ls /mnt/card$TARGDIR | grep .so` do if [ ! -e $TARGDIR/$TARGLIB ] then ln -s /mnt/card$TARGDIR/$TARGLIB $TARGDIR/$TARGLIB > /dev/null 2>&1 fi done done