#!/bin/sh
grep -q -e smfp /etc/sane.d/dll.conf
[ $? -ne 0 ] && echo smfp >> /etc/sane.d/dll.conf
( cd usr/lib64/sane ; rm -rf libsane-smfp.so )
( cd usr/lib64/sane ; ln -sf libsane-smfp.so.1.0.1 libsane-smfp.so )
( cd usr/lib64/sane ; rm -rf libsane-smfp.so.1.0.1 )
( cd usr/lib64/sane ; ln -sf /opt/smfp-common/scanner/lib/libsane-smfp.so.1.0.1 libsane-smfp.so.1.0.1 )
( cd usr/lib64/sane ; rm -rf libsane-smfp.so.1 )
( cd usr/lib64/sane ; ln -sf libsane-smfp.so.1.0.1 libsane-smfp.so.1 )
