File: postinst

package info (click to toggle)
gpr 0.9deb-4sarge
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,236 kB
  • ctags: 228
  • sloc: sh: 9,476; ansic: 3,424; makefile: 112
file content (22 lines) | stat: -rw-r--r-- 471 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
#!/bin/sh -e

. /usr/share/debconf/confmodule

if [ "$1" = reconfigure -o "$1" = configure ] ; then
 #safety check
 if  [  -L /usr/bin/lpr -o ! -e /usr/bin/lpr ] ; then
  [ -e /usr/bin/lpr ] && rm /usr/bin/lpr 
  db_get gpr/divert_lpr 
  if [ "$RET" = "true" ]; then	
 	ln -s /usr/lib/gpr/lpr.wrapper /usr/bin/lpr 
  else
 	ln -s /usr/bin/lpr.not.gpr /usr/bin/lpr 
  fi
 else
  echo gpr problem: /usr/bin/lpr exists and is not a symlink 1>&2
 fi
fi

db_stop

#DEBHELPER#