File: postrm

package info (click to toggle)
phalanx 12-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 664 kB
  • ctags: 504
  • sloc: ansic: 6,094; makefile: 76; sh: 50
file content (10 lines) | stat: -rw-r--r-- 199 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

set -e

if test "$1" = purge; then
  echo "Removing learning file..."
  rm -f /var/lib/games/phalanx.learn
else  # not purging
  if test -x /usr/bin/update-menus; then update-menus; fi
fi