File: prerm

package info (click to toggle)
ratpoison 1.4.9-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, trixie
  • size: 2,476 kB
  • sloc: ansic: 14,854; sh: 1,553; perl: 330; makefile: 189; lisp: 124
file content (23 lines) | stat: -rw-r--r-- 411 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
#! /bin/sh
# prerm script for ratpoison

set -e

case "$1" in
    remove|deconfigure)
    	update-alternatives --remove x-window-manager /usr/bin/ratpoison
	if [ -d /var/lib/ratpoison/menu ] ; then
		rm /var/lib/ratpoison/menu/*.menu || true
	fi
        ;;
    upgrade|failed-upgrade)
        ;;
    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0