main/busybox: remove relocated symlinks

This commit is contained in:
Natanael Copa 2012-01-04 08:00:36 +00:00
parent dbf4b64186
commit b60e57c4f8
2 changed files with 7 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=busybox
pkgver=1.19.3
pkgrel=2
pkgrel=3
_bbsuidver=0.6
pkgdesc="Size optimized toolbox of many common UNIX utilities"
url=http://busybox.net

View File

@ -1,9 +1,11 @@
#!/bin/sh
# /bin/install has moved to /usr/bin/install, but we need remove old link
if [ -L /bin/install ] && [ "$(readlink /bin/install)" = "/bin/busybox" ]; then
rm /bin/install
fi
# remove links that has been relocated
for link in /bin/install /bin/ip /bin/vi /usr/bin/lspci; do
if [ -L "$link" ] && [ "$(readlink $link)" = "/bin/busybox" ]; then
rm "$link"
fi
done
# We need the symlinks early
exec /bin/busybox --install -s