#!/bin/sh [ -x /usr/bin/innetgr ] || exit 0 for hostname in "$(uname -n)" "$(hostname -s)" ; do # Automatically flush print queues every night if the # host is a member of the cups-queue-autoflush-hosts netgroup. if innetgr -h $hostname cups-queue-autoflush-hosts ; then exec /usr/share/debian-edu-config/tools/cups-queue-autoflush fi done