5 kx #!/bin/sh
5 kx
5 kx # arg 1: the new package version
5 kx pre_install() {
5 kx /bin/true
5 kx }
5 kx
5 kx # arg 1: the new package version
5 kx post_install() {
5 kx if ! grep "^utmp:" etc/group 1> /dev/null 2> /dev/null ; then
5 kx if ! grep ":22:" etc/group 1> /dev/null 2> /dev/null ; then
5 kx # we'll be adding this in the etc package anyway.
5 kx echo "utmp::22:" >> etc/group
5 kx fi
5 kx fi
5 kx if [ -r var/run/utmp ] ; then
5 kx chmod 664 var/run/utmp
5 kx fi
5 kx if [ -r var/log/wtmp ] ; then
5 kx chmod 664 var/log/wtmp
5 kx fi
5 kx }
5 kx
5 kx # arg 1: the new package version
5 kx # arg 2: the old package version
5 kx pre_update() {
5 kx /bin/true
5 kx }
5 kx
5 kx # arg 1: the new package version
5 kx # arg 2: the old package version
5 kx post_update() {
5 kx post_install
5 kx }
5 kx
5 kx # arg 1: the old package version
5 kx pre_remove() {
5 kx /bin/true
5 kx }
5 kx
5 kx # arg 1: the old package version
5 kx post_remove() {
5 kx /bin/true
5 kx }
5 kx
5 kx
5 kx operation=$1
5 kx shift
5 kx
5 kx $operation $*