#!/bin/sh

. /etc/control.d/functions

CONFIG=/etc/sysconfig/bind

new_summary 'Retention of Linux capabilities of the ISC BIND server'

new_subst disabled \
	'^#RETAIN_CAPS="-r"$' \
	's/^RETAIN_CAPS=/#&/'
new_help disabled 'Drop all the Linux capabilities of the ISC BIND server'

new_subst enabled \
	'^RETAIN_CAPS="-r"$' \
	's/^#\(RETAIN_CAPS="-r"\)$/\1/'
new_help enabled 'Retain Linux capabilities(Upstream version) of the ISC BIND server'

control_subst "$CONFIG" "$*"
