#!/bin/sh

PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH
umask 022
. /etc/ltsp_functions
 

# Initialise the spool directory
#
mkdir -p /var/spool/lpd
chgrp lp /var/spool/lpd
chmod 775 /var/spool/lpd

# temp dir
mkdir -p /var/tmp
chmod 1777 /var/tmp

USE_LPD=`get_cfg USE_LPD N`
if [ "${USE_LPD}" = "Y" ]; then
	# start the printer daemon
	echo "Starting print services"
	/usr/sbin/lpd
fi

exit 0
