Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > d2574089425ed85b0bbd6d68b3b32517 > scriptlet

ksh93-static-1.1-4.i686.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	while read SHNAME; do
		[ "$SHNAME" = "/bin/ksh93.static" ] ||\
		echo "$SHNAME"
	done
	mv -f /etc/shells.new /etc/shells
fi

POSTIN

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