File: postinst

package info (click to toggle)
pcmciautils 015-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 332 kB
  • ctags: 792
  • sloc: ansic: 3,812; sh: 279; lex: 219; makefile: 218; yacc: 104
file content (24 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/sh
set -e

case $1 in
	configure)
		if dpkg --compare-versions "$2" lt 012-2; then
			ln -sf ../pcmcia.rules /etc/udev/rules.d/85-pcmcia.rules
		fi
		if [ ! -f /etc/pcmcia/config.opts ]; then
			cp -a /usr/lib/pcmciautils/config.opts /etc/pcmcia/
		fi

		# Remove shutdown and reboot links;
		# this init script does not need them.
		if dpkg --compare-versions "$2" lt 014-2; then
			rm -f /etc/rc0.d/K88pcmciautils \
			      /etc/rc6.d/K88pcmciautils
		fi
		;;
esac

#DEBHELPER#

exit 0