File: postrm

package info (click to toggle)
wm2 4-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 256 kB
  • ctags: 425
  • sloc: cpp: 3,648; makefile: 57; sh: 48
file content (17 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e
inst=/etc/menu-methods/wm2 
case "$1" in
    remove)
        chmod a-x $inst
    ;;
    purge)
        #remove the files that install-fvwmgenmenu creates:
        rm -f /etc/X11/wm2/{system.wm2rc,menudefs.hook}
    ;;
    upgrade);;
    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac