summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/prerm
blob: 9565cabe10cef3468079bd4e18a0863118aeafc8 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

if [ "${1}" = remove ]; then
	while read link name prio; do
		if [ -e "${link}.busybox" ]; then
			update-alternatives --remove "${name}" "${link}.busybox"
		fi
	done </usr/share/busybox/alternatives
fi