File: postrm

package info (click to toggle)
setserial 2.17-43
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 536 kB
  • ctags: 192
  • sloc: sh: 3,100; ansic: 1,008; makefile: 126; csh: 2
file content (46 lines) | stat: -rw-r--r-- 1,234 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#! /bin/sh

package="setserial"

if [ purge = "$1" ]; then
  update-rc.d setserial remove >/dev/null
  update-rc.d etc-setserial remove >/dev/null
  if [ -e /var/lib/setserial/etc.serial.conf.bkp ] ; then
      rm -f /var/lib/setserial/etc.serial.conf.bkp
  fi
  if [ -e /var/lib/setserial/autoserial.conf ] ; then
      rm -f /var/lib/setserial/autoserial.conf
  fi
  if [ -e /var/lib/setserial/autoserial.conf.old ] ; then
      rm -f /var/lib/setserial/autoserial.conf.old
  fi
fi


if [ -f /usr/share/debconf/confmodule ]; then # debconf exists
. /usr/share/debconf/confmodule

 if [ -x /sbin/update-modules ]; then
  #db_get setserial/usemodup
  #if [ "$RET" = "true" ]; then
   if ! /sbin/update-modules ; then
    # cannot easily tell the user there was a problem, so silently ignore it
    WHOCARES=0;
   fi
  #fi
 fi
fi
#ENDOF DEBCONF

#if [ -x /sbin/update-modules ]; then
#  mv /etc/modules.conf /etc/modules.conf.old.$package
#  if ! /sbin/update-modules ; then
#    mv /etc/modules.conf.old.$package /etc/modules.conf
#  else
#    mv /etc/modules.conf /etc/modules.conf.new.$package
#    mv /etc/modules.conf.old.$package /etc/modules.conf
#    ucf /etc/modules.conf.new.$package /etc/modules.conf
#  fi
#fi

#DEBHELPER#