-
Notifications
You must be signed in to change notification settings - Fork 692
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main/busybox: add subpackage busybox-extras
The following programs have been moved from busybox to the new subpackage busybox-extras: ftpget, ftpput, telnet, tftp, ftpd, httpd New programs in busybox-extras: tftpd, telnetd When busybox-extras gets installed, busybox gets properly uninstalled. Reversing this operation is also possible, as described in busybox-extras.post-install.
- Loading branch information
Oliver Smith
committed
May 5, 2017
1 parent
90f4bdf
commit 4dfcdd0
Showing
7 changed files
with
1,223 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
# Uninstall note | ||
echo "-> NOTE: To uninstall busybox-extras properly, do this:" | ||
echo " # apk del busybox-extras" | ||
echo " # apk add /var/cache/apk/busybox-1.26.2-r3...apk # pick latest" | ||
echo " # apk add busybox" | ||
|
||
# We need the symlinks early | ||
exec /bin/busybox --install -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
busybox.trigger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
#!/bin/sh | ||
|
||
# Remove links from busybox-extras (see also: busybox.post-upgrade) | ||
for link in \ | ||
/usr/bin/ftpget \ | ||
/usr/bin/ftpput \ | ||
/usr/bin/telnet \ | ||
/usr/bin/tftp \ | ||
/usr/sbin/ftpd \ | ||
/usr/sbin/httpd \ | ||
/usr/sbin/telnetd \ | ||
/usr/sbin/tftpd \ | ||
; do | ||
if [ -L "$link" ] && [ "$(readlink $link)" = "/bin/busybox" ]; then | ||
rm "$link" | ||
fi | ||
done | ||
|
||
# We need the symlinks early | ||
exec /bin/busybox --install -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.