initial commit
[glibc.git] / debian / debhelper.in / libc-alt.postrm
1 #! /bin/sh
2 set -e
3
4 if [ "$1" = remove ]; then
5 # Native multiarch packages declare a Replaces: on the corresponding
6 # biarch package. Therefore if both a biarch package and the corresponding
7 # multiarch package are installed, then the multiarch package is removed,
8 # and then the biarch package is removed, the dynamic linker symlink
9 # becomes a dangling symlink. Remove it in that case.
10 if [ -h RTLDDIR/RTLD_SO ] && [ ! -f RTLDDIR/RTLD_SO ]; then
11 rm RTLDDIR/RTLD_SO
12 fi
13 fi
14
15 if [ "$1" = deconfigure ]; then
16 :; # blah, do something useful with ldso
17 fi
18
19 #DEBHELPER#
20
21 exit 0