3 echo -e "\n\e[0;34m>>> To install your Lexmark printer run as root"
4 echo ">>> (don't use \"sudo\", it will not work):"
6 echo ">>> # lx-postinstall.sh"
8 echo ">>> and add your user to the \"scanner\" group:"
10 echo ">>> # gpasswd -a \$yourusername scanner"
12 echo ">>> All functions are ok, except USB printing that doesn't work at all"
14 if [ ! `grep LexmarkLegacy_1_0_0 /etc/sane.d/dll.conf` ]; then
15 echo "LexmarkLegacy_1_0_0" >> /etc/sane.d/dll.conf
17 ## create library symlinks
18 for L in /usr/share/lexmark/legacy/lib/liblx*.so
20 ln -s $L /usr/share/lexmark/legacy/lib/`basename $L .so`
29 sed -i '/LexmarkLegacy_1_0_0/d' /etc/sane.d/dll.conf
30 ## remove library symlinks
31 find /usr/share/lexmark/legacy/lib -type l -iname 'liblx*' -exec rm -f '{}' ';'