aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox/busybox.post-upgrade
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2015-05-31 04:44:51 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2015-05-31 04:45:13 -0500
commit86a7286025919cfee33eb599c1d12d7d187d761b (patch)
tree0439b4a8b97fafe2bd050079190f486a78386ab6 /main/busybox/busybox.post-upgrade
parent12de199d3c0117d4a34b9622e17e4688d7741ea1 (diff)
downloadaports-86a7286025919cfee33eb599c1d12d7d187d761b.tar.bz2
aports-86a7286025919cfee33eb599c1d12d7d187d761b.tar.xz
main/busybox: remove ping/traceroute commands from bbsuid
Diffstat (limited to 'main/busybox/busybox.post-upgrade')
-rw-r--r--main/busybox/busybox.post-upgrade7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/busybox/busybox.post-upgrade b/main/busybox/busybox.post-upgrade
index 268f22d408..833c05d806 100644
--- a/main/busybox/busybox.post-upgrade
+++ b/main/busybox/busybox.post-upgrade
@@ -7,5 +7,12 @@ for link in /bin/install /bin/ip /bin/vi /usr/bin/lspci; do
fi
done
+# remove links that used to be under control of bbsuid
+for link in /bin/ping /bin/ping6 /usr/bin/traceroute; do
+ if [ -L "$link" ] && [ "$(readlink $link)" = "/bin/bbsuid" ]; then
+ rm "$link"
+ fi
+done
+
# We need the symlinks early
exec /bin/busybox --install -s