mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
main/busybox: remove relocated symlinks
This commit is contained in:
parent
dbf4b64186
commit
b60e57c4f8
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user