summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/prerm
blob: 5e7cf792c9bdae23484c485ca52dd2834516b347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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 <<-EOF
		/usr/bin/awk awk 10
		/usr/bin/ar ar 10
		/usr/bin/strings strings 10
		/usr/bin/clear clear 10
		/usr/bin/reset reset 10
		/usr/bin/mkpasswd mkpasswd 10
		EOF
fi