#!/bin/sh

. /etc/control.d/functions

CONFIG=/etc/sysconfig/bind

new_summary 'Chrootedness of the ISC BIND server'

new_subst disabled \
	'^CHROOT="-t /"$' \
	's/^#\(CHROOT="-t \/"\)$/\1/'
new_help disabled 'Disable chrootedness of the ISC BIND server'

new_subst enabled \
	'^#CHROOT="-t /"$' \
	's/^CHROOT=/#&/'
new_help enabled 'Enable chrootedness of the ISC BIND server'

control_subst "$CONFIG" "$*"
