From b60e57c4f819be22d4691d4a0feff7f2e4931cdd Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 4 Jan 2012 08:00:36 +0000 Subject: main/busybox: remove relocated symlinks --- main/busybox/busybox.post-upgrade | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'main/busybox/busybox.post-upgrade') diff --git a/main/busybox/busybox.post-upgrade b/main/busybox/busybox.post-upgrade index c55561cc1..268f22d40 100644 --- a/main/busybox/busybox.post-upgrade +++ b/main/busybox/busybox.post-upgrade @@ -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 -- cgit v1.2.3