#!/bin/bash
#
# __copy1__
# __copy2__
#
CMD=`basename $0`
set -u

[ $# != 2 ] && {
	echo "usage: $CMD key value" >&2
	exit 1
}
[ `id -u` != 0 ] && {
	echo "$CMD: this command can be used only by root" >&2
	exit 1
}

key=$1 ; shift
ans=`echo "set $key $*" | debconf-communicate`
case $ans in
  0*)	exit 0
	;;
  *)	echo "error: $ans" >&2
	exit 1
	;;
esac


