case "$1" in
configure)
- # Clean up the old sudoers line before we add it back
- perl -i.bak -ne 's%^### (BEGIN|END) invirt-console-host\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
-
cat >>/etc/sudoers <<EOF
### BEGIN invirt-console-host
conservr ALL=(ALL) NOPASSWD: /usr/sbin/xm console d_*