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