summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/prerm
blob: 9734cd70dbe657288ca66f0d391d4a302fda6d22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ "x${1}" = 'xremove' ]; then
	if [ -e /usr/share/busybox/init-scripts ]; then
		while read script; do
			"/etc/init.d/${script}" stop
			"/etc/init.d/${script}" disable
		done </usr/share/busybox/init-scripts
	fi
	while read link name prio; do
		update-alternatives --remove "${name}" "${link}.busybox"
	done </usr/share/busybox/alternatives
fi