File: prerm

package info (click to toggle)
ksh93u%2Bm 1.0.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,744 kB
  • sloc: ansic: 142,757; sh: 33,435; makefile: 32
file content (31 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

set -e

case "$1" in
    remove|deconfigure)
        if command -v update-binfmts >/dev/null && test -r \
             /var/lib/binfmts/ksh; then
                 update-binfmts --package ksh93u+m --remove ksh \
                     /bin/ksh || true
        fi

        update-alternatives --remove ksh /bin/ksh93
        update-alternatives --remove shcomp /usr/bin/shcomp93

        # remove compatibility symlink if broken
        test '!' -h /usr/bin/ksh || test -e /usr/bin/ksh || rm -f /usr/bin/ksh
    ;;

    upgrade|failed-upgrade)
    ;;

    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac

#DEBHELPER#

exit 0