#!/bin/sh

. /etc/control.d/functions

CONFIG=/etc/cups/cupsd.conf

new_subst server \
	'^Listen[[:space:]]+[[:graph:]]+:631[[:space:]]*$' \
	's/^#\(Listen[[:space:]]\+[[:graph:]]\+:631\)[[:space:]]*$/\1/g'
new_subst local \
	'^#Listen[[:space:]]+[[:graph:]]+:631[[:space:]]*$' \
	's/^\(Listen[[:space:]]\+[[:graph:]]\+:631\)[[:space:]]*$/#\1/g'

new_summary "Common Unix Printing System"
new_help local "Only local utilities can work with cups"
new_help server "External IPP interface are available for user"


control_subst "$CONFIG" "$*"
