only delete the symlink if it points back to the PREFIX.

This commit is contained in:
brad 2001-02-14 22:13:09 +00:00
parent d9eaf6f42d
commit 8d691f3cf3

View File

@ -1,4 +1,5 @@
# $OpenBSD: DEINSTALL,v 1.1 2000/06/20 18:33:15 brad Exp $
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.2 2001/02/14 22:13:09 brad Exp $
#
# freebsd_lib de-installation
@ -6,7 +7,7 @@ set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local/emul/freebsd}
if [ -L /emul/freebsd ]; then
if [ -L /emul/freebsd -a x`readlink /emul/freebsd` = x"$PREFIX" ]; then
rm -f /emul/freebsd
fi