File: postinst

package info (click to toggle)
less 332-4
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 956 kB
  • ctags: 1,145
  • sloc: ansic: 13,030; sh: 185; makefile: 116; awk: 7
file content (25 lines) | stat: -rw-r--r-- 467 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
#!/bin/sh
# less.postinst - call after dpkg has unpacked the package
# written by Darren Stalder (whooptidoo!)
# $Id: postinst,v 1.2 1998/05/12 08:50:41 torin Exp $
#

set -e

case "$1" in
    configure)
      update-alternatives --quiet --install /usr/bin/pager pager \
       /usr/bin/less 77

    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

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

exit 0