pkgname=lxdm post_install() { if [ -z "`getent group "lxdm" 2> /dev/null`" ]; then groupadd lxdm chown root:lxdm /etc/lxdm/lxdm.conf fi chown -R root:lxdm /var/lib/lxdm > /dev/null chmod +r /etc/lxdm/lxdm.conf } post_upgrade() { post_install } post_remove() { getent group "lxdm" &>/dev/null && groupdel lxdm #1>/dev/null return 0 } op=$1 shift $op "$@"