File: postrm

package info (click to toggle)
lynx 2.8.3-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 8,540 kB
  • ctags: 9,352
  • sloc: ansic: 116,677; sh: 1,974; makefile: 973; perl: 342; sed: 93
file content (18 lines) | stat: -rw-r--r-- 290 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if test -x /usr/bin/update-menus; then update-menus; fi

if [ -x /usr/sbin/update-mime ]; then
    update-mime
fi

if [ "$1" = "purge" ]; then
    rm -f /etc/lynx.cfg
    if [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
    fi
fi