summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'busybox.pkg/postinst')
-rwxr-xr-xbusybox.pkg/postinst10
1 files changed, 7 insertions, 3 deletions
diff --git a/busybox.pkg/postinst b/busybox.pkg/postinst
index 9f23a39..ae66306 100755
--- a/busybox.pkg/postinst
+++ b/busybox.pkg/postinst
@@ -1,9 +1,13 @@
#!/bin/sh
if [ "x${1}" = 'xconfigure' ]; then
- while read link name prio; do
- update-alternatives --install "${link}" "${name}" \
- "${link}.busybox" "${prio}"
+ while read link; do
+ # 15 is a (temporary?) middle ground: alternatives that should
+ # override busybox's have priority 20 (which should maybe be
+ # increased to 30), and expect-doc provides a /usr/bin/mkpasswd
+ # alternative with priority 10.
+ update-alternatives --install "${link}" "${link##*/}" \
+ "${link}.busybox" 15
done </usr/share/busybox/alternatives
if ! [ -f /etc/rc.policy ]; then
if [ "x$(cat /etc/proteanos_plat)" = 'xdev' ]; then