summaryrefslogtreecommitdiffstats
path: root/e2fsprogs.pkg/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs.pkg/prerm')
-rw-r--r--e2fsprogs.pkg/prerm8
1 files changed, 8 insertions, 0 deletions
diff --git a/e2fsprogs.pkg/prerm b/e2fsprogs.pkg/prerm
new file mode 100644
index 0000000..becf74c
--- /dev/null
+++ b/e2fsprogs.pkg/prerm
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ x"${1}" = x'remove' ] || [ x"${1}" = x'purge' ] || [ x"${1}" = x'upgrade' ]
+then
+ while read link; do
+ update-alternatives --remove "${link##*/}" "${link}.e2p"
+ done </usr/share/e2fsprogs/alternatives
+fi