16
16
# We need CUPS to be running to be able to remove the PDF queue.
17
17
if [ -f /etc/init.d/cups ]
21
33
# Purge all remaining PDF queues.
22
34
for queue in $(LC_ALL=C lpstat -h localhost -v 2>/dev/null | grep 'cups-pdf:/' | cut -d ':' -f 1 | cut -d ' ' -f 3)
24
38
echo | lpadmin -h localhost -x $queue 2>/dev/null || :
26
40
# We need CUPS to reload its configuration to make the backend unavailable.