summaryrefslogtreecommitdiff
path: root/libc/debian/libc1.postinst
blob: 93e6ae898373e8a932c1df8caa5b217d3e996b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

if [ "$1" = configure ]; then
    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#