initial version
[lwes-erlang.git] / fw-pkgin / pre-remove
blob56e0e52deb7e6a3f1681e2763eb1ce76bb1c1515
1 #! /bin/sh
3 set -e
5 #---------------------------------------------------------------------
6 # pre-remove
7 #
8 # Executed before the package is removed.
10 # http://code.google.com/p/fwtemplates/wiki/PackageHooks
11 #---------------------------------------------------------------------
13 case "$1" in
14 upgrade)
15 # defer to newer package's script
16 exit 1
18 failed-upgrade)
19 # actually handle the upgrade here
20 # old-version is $2
22 remove)
26 esac
28 exit 0