# arg 1: the new package version post_install() { # setting up freenx echo 'Generating keys ...' /opt/NX/bin/nxsetup --install --uid 85 --gid 85 2>&1 >/dev/null /bin/cat <&1 >/dev/null /bin/cat <&1 >/dev/null usr/sbin/groupdel nx &>/dev/null } op=$1 shift $op $*