9 local SYMLINK_TARGET
="$2"
11 [ "$(readlink "$SYMLINK")" = "$SYMLINK_TARGET" ] || \
12 [ "$(readlink -f "$SYMLINK")" = "$SYMLINK_TARGET" ]
15 SYMLINK
=/usr
/share
/doc
/comerr-dev
16 SYMLINK_TARGET
=libcomerr2
17 SYMLINK_TARGET2
=libcom-err2
19 if [ "$1" = "install" -o "$1" = "upgrade" ] &&
20 [ -n "$2" ] && [ -h "$SYMLINK" ]
22 if symlink_match
"$SYMLINK" "$SYMLINK_TARGET" ||
23 symlink_match
"$SYMLINK" "$SYMLINK_TARGET2"
25 mv -f "$SYMLINK" "${SYMLINK}.dpkg-backup"