summaryrefslogtreecommitdiffstats
path: root/badblocks.pkg
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-08 01:36:20 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-08 19:18:07 (EST)
commite56ecddd0e81ae63727ec22223856484ed7da923 (patch)
tree3817ef9827e5a43951bab0fdd4e515b9ab078e6d /badblocks.pkg
parent9ed4a97267bddd5f3e92fbb0dba4e4fd8b1c0060 (diff)
badblocks, e2fsprogs: u-a all the executables
Diffstat (limited to 'badblocks.pkg')
-rw-r--r--badblocks.pkg/postinst8
-rw-r--r--badblocks.pkg/prerm8
2 files changed, 16 insertions, 0 deletions
diff --git a/badblocks.pkg/postinst b/badblocks.pkg/postinst
new file mode 100644
index 0000000..7565d24
--- /dev/null
+++ b/badblocks.pkg/postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ x"${1}" = x'configure' ]; then
+ while read link; do
+ update-alternatives --install "${link}" "${link##*/}" \
+ "${link}.e2p" 30
+ done </usr/share/badblocks/alternatives
+fi
diff --git a/badblocks.pkg/prerm b/badblocks.pkg/prerm
new file mode 100644
index 0000000..ba48cc5
--- /dev/null
+++ b/badblocks.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/badblocks/alternatives
+fi