#!/bin/sh # #ident "@(#)preremove 1.2 97/08/13 SMI" # # Copyright (c) 1997 by Sun Microsystems, Inc. # # # remove the domestic libcrypt.so symlink and, if the # international version of the symlink is installed, restore it. # # remove the domestic link # if [ -h $BASEDIR/usr/lib/sparcv9/libcrypt.so ]; then rm -f $BASEDIR/usr/lib/sparcv9/libcrypt.so fi if [ -h $BASEDIR/usr/lib/sparcv9/libcrypt.so.1 ]; then rm -f $BASEDIR/usr/lib/sparcv9/libcrypt.so.1 fi # reinstall the international link if [ -h $BASEDIR/usr/lib/sparcv9/libcrypt_i.so ]; then ln -s libcrypt_i.so $BASEDIR/usr/lib/sparcv9/libcrypt.so || exit 2 fi if [ -f $BASEDIR/usr/lib/sparcv9/libcrypt_i.so.1 ]; then ln -s libcrypt_i.so.1 $BASEDIR/usr/lib/sparcv9/libcrypt.so.1 || exit 2 fi exit 0