File: postinst

package info (click to toggle)
jless 332iso240-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,228 kB
  • ctags: 1,482
  • sloc: ansic: 16,120; sh: 190; makefile: 142; awk: 7
file content (23 lines) | stat: -rw-r--r-- 393 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# less.postinst - call after dpkg has unpacked the package
# written by Darren Stalder (whooptidoo!)
#
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

#DEBHELPER#

exit 0