summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/prerm
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-02-19 20:22:46 (EST)
committer P. J. McDermott <pjm@nac.net>2014-02-19 20:22:46 (EST)
commit9bcff3ce43a48466a5ea3266b63f802882ee9b1b (patch)
tree1ca7ac08e106f1ae7b3bc13d1c0d8aa95945523e /busybox.pkg/prerm
parent8bb6431fe1740f5f7fffaa8214a9b4e930754432 (diff)
Simplify maintainer scripts.
Populate /usr/share/busybox/alternatives at build time with only the files actually installed.
Diffstat (limited to 'busybox.pkg/prerm')
-rwxr-xr-xbusybox.pkg/prerm4
1 files changed, 1 insertions, 3 deletions
diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm
index 9565cab..c27fe7e 100755
--- a/busybox.pkg/prerm
+++ b/busybox.pkg/prerm
@@ -2,8 +2,6 @@
if [ "${1}" = remove ]; then
while read link name prio; do
- if [ -e "${link}.busybox" ]; then
- update-alternatives --remove "${name}" "${link}.busybox"
- fi
+ update-alternatives --remove "${name}" "${link}.busybox"
done </usr/share/busybox/alternatives
fi