File: postrm

package info (click to toggle)
nvi 1.79-25
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,396 kB
  • ctags: 3,767
  • sloc: ansic: 42,531; sh: 1,561; tcl: 1,124; makefile: 787; perl: 240; awk: 24; csh: 13
file content (23 lines) | stat: -rw-r--r-- 545 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

if [ "$1" = "purge" ]
then
    update-rc.d nviboot remove > /dev/null
    # There might be a leftover /etc/rc.boot/nvi file left
    # around -- kill it.
    if [ -f /etc/rc.boot/nvi ] ; then
	rm /etc/rc.boot/nvi
    fi
    # There might be a leftover /etc/rc.boot/nvi.save_while_moving file left
    # around -- kill it too.
    if [ -f /etc/rc.boot/nvi.save_while_moving ] ; then
	rm /etc/rc.boot/nvi.save_while_moving
    fi
    if [ -d /var/tmp/vi.recover ] ; then
      rm -rf /var/tmp/vi.recover
    fi
fi

#DEBHELPER#

exit 0