summaryrefslogblamecommitdiff
path: root/system/busybox/busybox.pre-deinstall
blob: f1e10ba92e8dcbcbe67c840093e8a44ddf9cbbca (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                           
#!/bin/sh

# Remove all symlinks to busybox
cd /
for link in $(busybox --list-full); do
	if [ -L "$link" ] && [ "$(readlink $link)" = "/bin/busybox" ]; then
		rm "$link"
	fi
done