diff options
author | P. 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) |
commit | 9bcff3ce43a48466a5ea3266b63f802882ee9b1b (patch) | |
tree | 1ca7ac08e106f1ae7b3bc13d1c0d8aa95945523e /busybox.pkg/postinst | |
parent | 8bb6431fe1740f5f7fffaa8214a9b4e930754432 (diff) |
Simplify maintainer scripts.
Populate /usr/share/busybox/alternatives at build time with only the
files actually installed.
Diffstat (limited to 'busybox.pkg/postinst')
-rwxr-xr-x | busybox.pkg/postinst | 6 |
1 files changed, 2 insertions, 4 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 |