summaryrefslogtreecommitdiff
path: root/libc/debian/libc1.postinst
blob: 96dd1a8c9adcf45220bb42eab0475f615d4a1e65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/sh

if [ "$1" = configure ]; then
    if [ ! -e /var/ld/64/ld.config ]; then
        echo "Creating default /var/ld/64/ld.config for 64-bit arch"
        cp /usr/lib/ld/64/ld.config /var/ld/64/ld.config
    fi

    cryptconf=/etc/security/crypt.conf
    if [ ! -e $cryptconf ]; then
        echo '# see man 4 crypt.conf' > $cryptconf
        echo '1   crypt_bsdmd5.so.1' >> $cryptconf
        echo '2a  crypt_bsdbf.so.1'  >> $cryptconf
        echo 'md5 crypt_sunmd5.so.1' >> $cryptconf
        echo '5   crypt_sha256.so.1' >> $cryptconf
        echo '6   crypt_sha512.so.1' >> $cryptconf
    fi
fi

#DEBHELPER#