# hooks addon for printer support function add_lp_modules() { force_load parport_pc force_load usblp force_load lp } if [ ! $TCOS_PRINTER ] ;then _verbose "(09printer) TCOS_PRINTER disabled" else stat_before if [ -e /usr/sbin/p910nd ]; then #/var/run/p9100d.pid, /var/lock/subsys/p9100d, /etc/hosts.allow, /etc/hosts.deny mkdir -p $DESTDIR/var/run mkdir -p $DESTDIR/var/lock/subsys cpifexists /usr/sbin/p910nd /usr/bin/ stat_after "Print server [p910nd]" else _echo "WARNING:" _echo "" _echo " TCOS_PRINTER enabled but not found p910nd package" _echo " Please install p910nd, or disable TCOS_PRINTER support" _echo "" _echo "" fi add_lp_modules fi # end of TCOS_PRINTER