summaryrefslogtreecommitdiffstats
path: root/badblocks.pkg/prerm
blob: ba48cc5c0db63576a727b50ff3c70e6ebefd10c2 (plain)
1
2
3
4
5
6
7
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