aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox/busybox-extras.pre-deinstall
diff options
context:
space:
mode:
authorOliver Smith <ollieparanoid@bitmessage.ch>2017-06-07 19:45:39 +0200
committerOliver Smith <ollieparanoid@bitmessage.ch>2017-06-07 19:45:39 +0200
commit23f4c6bd6c0c8c8f616facad94865e7961cdfb2d (patch)
tree936889a3d8e1e8e2f25ceba11d814bdeed04b50d /main/busybox/busybox-extras.pre-deinstall
parent4fe0d91c731fa63f14312e4253ad5b2331bd3311 (diff)
downloadaports-23f4c6bd6c0c8c8f616facad94865e7961cdfb2d.tar.gz
aports-23f4c6bd6c0c8c8f616facad94865e7961cdfb2d.tar.bz2
aports-23f4c6bd6c0c8c8f616facad94865e7961cdfb2d.tar.xz
main/busybox: add subpackage busybox-extras
The following programs have been moved from busybox to -extras: ftpget, ftpput, telnet, tftp, ftpd, httpd New programs in -extras: telnetd, tftpd
Diffstat (limited to 'main/busybox/busybox-extras.pre-deinstall')
-rw-r--r--main/busybox/busybox-extras.pre-deinstall9
1 files changed, 9 insertions, 0 deletions
diff --git a/main/busybox/busybox-extras.pre-deinstall b/main/busybox/busybox-extras.pre-deinstall
new file mode 100644
index 0000000000..15461302ce
--- /dev/null
+++ b/main/busybox/busybox-extras.pre-deinstall
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Remove all symlinks to busybox-extras
+cd /
+for link in $(busybox-extras --list --full); do
+ if [ -L "$link" ] && [ "$(readlink $link)" = "/bin/busybox-extras" ]; then
+ rm "$link"
+ fi
+done