1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#!/bin/sh
set -e
#DEBHELPER#
if [ -r /etc/printcap ]
then
if grep -q 'lexmark[[:digit:]]\+-filter' /etc/printcap
then
echo " /etc/printcap seems to be already configured for your Lexmark printer."
echo " (Run /usr/sbin/magicfilterconfig --force if you want to overwrite it.)"
else
echo " /etc/printcap already exists,"
echo " but does not seem to be configured for your Lexmark printer."
echo " Run /usr/sbin/magicfilterconfig --force if you want to overwrite it."
fi
else
echo " /etc/printcap does not exists."
echo " Running /usr/sbin/magicfilterconfig ..."
if /usr/sbin/magicfilterconfig
then
if [ -r /etc/printcap ]
then
echo " /etc/printcap has been created successfully."
else
echo " magicfilterconfig reported no error,"
echo " but /etc/printcap was not created! Hmm..."
echo " You will need to run magicfilterconfig manually."
fi
else
echo " magicfilterconfig exited with error code $?."
echo " You will need to run magicfilterconfig manually."
fi
fi
echo " Please read /usr/doc/lexmark7000linux/README.Debian to get started."
|