PREUN
/bin/sh
if [ "$1" = "0" ]; then while read SHNAME; do [ "$SHNAME" = "/bin/ksh.static" ] ||\ echo "$SHNAME" done mv -f /etc/shells.new /etc/shells fi
POSTIN
/bin/sh
if [ ! -f /etc/shells ]; then echo "/bin/ksh.static" > /etc/shells else while read SHNAME; do if [ "$SHNAME" = "/bin/ksh.static" ]; then HAS_KSH_STATIC=1 fi done < /etc/shells [ -n "$HAS_KSH_STATIC" ] || echo "/bin/ksh.static" >> /etc/shells fi