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

if [ "x${1}" = 'xupgrade' ]; then
	if [ -f /usr/share/busybox/init-scripts ]; then
		while read script; do
			"/etc/init.d/${script}" stop
		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