PKGBUILDs/community/vlock/vlock.install
2009-10-09 21:15:33 -05:00

18 lines
325 B
Text

post_install() {
echo -n 'Adding vlock group... '
groupadd -g 129 vlock && echo 'done.'
}
post_upgrade() {
cut -d: -f1 /etc/group | grep ^vlock$ >/dev/null
if [ $? == 1 ] ; then
post_install
fi
}
post_remove() {
echo -n 'Removing vlock group... '
groupdel vlock && echo 'done.'
}
# vim:set ts=2 sw=2 et: