summaryrefslogtreecommitdiffstats
path: root/busybox.pkg
diff options
context:
space:
mode:
Diffstat (limited to 'busybox.pkg')
-rwxr-xr-xbusybox.pkg/postinst6
-rwxr-xr-xbusybox.pkg/prerm4
2 files changed, 3 insertions, 7 deletions
diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst
index a9922b6..d0a2cc3 100755
--- a/busybox.pkg/postinst
+++ b/busybox.pkg/postinst
@@ -2,9 +2,7 @@
if [ "x${1}" = 'xconfigure' ]; then
while read link name prio; do
- if [ -e "${link}.busybox" ]; then
- update-alternatives --install "${link}" "${name}" \
- "${link}.busybox" "${prio}"
- fi
+ update-alternatives --install "${link}" "${name}" \
+ "${link}.busybox" "${prio}"
done </usr/share/busybox/alternatives
fi
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