PREIN
/bin/sh
# Installation if [ $1 -eq 1 ]; then /usr/sbin/useradd -c "The GNU TetriNET server" -r -M -s '' \ -d /var/games/tetrinetx tetrinetx &>/dev/null || : fi
PREUN
/bin/sh
# Uninstallation if [ $1 -eq 0 ]; then /etc/init.d/tetrinetx stop &> /dev/null || : /sbin/chkconfig --del tetrinetx || : fi
POSTIN
/bin/sh
# Installation if [ $1 -eq 1 ]; then /sbin/chkconfig --add tetrinetx fi
POSTUN
/bin/sh
# Upgrade if [ $1 -ge 1 ]; then /etc/init.d/tetrinetx condrestart &>/dev/null || : fi