~ubuntu-branches/ubuntu/raring/lsb/raring-proposed

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lawrence
  • Date: 2005-03-27 21:42:24 UTC
  • mto: (1.1.3 squeeze)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050327214224-ptr2vsz557dpai0d
Tags: 2.0-7
Fix Replaces line to use the correct version in lsb-base.
(Closes: #301694, RC; Closes: #301747)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh -e
2
2
 
 
3
setup_ldso_symlink () {
 
4
    ARCH=`dpkg --print-installation-architecture`
 
5
    case "$ARCH" in
 
6
        s390)
 
7
            ln -sf ld.so.1 /lib/ld-lsb-s390.so.1
 
8
            ln -sf ld.so.1 /lib/ld-lsb-s390.so.2
 
9
            ;;
 
10
        powerpc)
 
11
            ln -sf ld.so.1 /lib/ld-lsb-ppc32.so.1
 
12
            ln -sf ld.so.1 /lib/ld-lsb-ppc32.so.2
 
13
            ;;
 
14
        i386)
 
15
            ln -sf ld-linux.so.2 /lib/ld-lsb.so.1
 
16
            ln -sf ld-linux.so.2 /lib/ld-lsb.so.2
 
17
            ;;
 
18
        amd64)
 
19
            ln -sf ld-linux.so.2 /lib/ld-lsb.so.1
 
20
            ln -sf ld-linux.so.2 /lib/ld-lsb.so.2
 
21
            ln -sf /lib/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.2
 
22
            ;;
 
23
        ia64)
 
24
            ln -sf ld-linux-ia64.so.2 /lib/ld-lsb-ia64.so.1
 
25
            ln -sf ld-linux-ia64.so.2 /lib/ld-lsb-ia64.so.2
 
26
            ;;
 
27
        *)
 
28
            echo "ld-lsb-*.so.1 symlink for $ARCH is unknown!"
 
29
            ;;
 
30
    esac
 
31
}
 
32
 
 
33
PATH=/sbin:/usr/sbin:$PATH
 
34
export PATH
 
35
 
3
36
. /usr/share/debconf/confmodule
4
37
 
5
 
if [ ! -e /etc/shadow ]; then
6
 
    db_get lsb/shadowconfig
7
 
    if [ "$RET" = "true" ]; then
8
 
        /usr/sbin/shadowconfig on >&2 || true
9
 
    fi
10
 
fi
 
38
case "$1" in
 
39
    configure)
 
40
        if [ ! -e /etc/shadow ]; then
 
41
            db_get lsb/shadowconfig
 
42
            if [ "$RET" = "true" ]; then
 
43
                shadowconfig on >&2 || true
 
44
            fi
 
45
        fi
 
46
        setup_ldso_symlink
 
47
        ;;
 
48
    abort-upgrade|abort-remove|abort-deconfigure)
 
49
        ;;
 
50
    *)
 
51
        echo "postinst called with unknown argument \`$1'" >&2
 
52
        exit 1
 
53
    ;;
 
54
esac
11
55
 
12
 
##DEBHELPER##
 
56
#DEBHELPER#