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 /build | |
parent | 8bb6431fe1740f5f7fffaa8214a9b4e930754432 (diff) |
Simplify maintainer scripts.
Populate /usr/share/busybox/alternatives at build time with only the
files actually installed.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -31,13 +31,16 @@ install: oh-fixperms oh-strip chmod u+s dest/bin/busybox - set -e; while read link name prio; do \ + mkdir -p dest/usr/share/busybox + set -e; exec 3>dest/usr/share/busybox/alternatives; \ + while read link name prio; do \ if [ -e "dest/$${link}" ]; then \ mv "dest/$${link}" "dest/$${link}.busybox"; \ + printf '%s %s %s\n' "$${link}" "$${name}" "$${prio}" \ + >&3; \ fi; \ - done <../alternatives - mkdir -p dest/usr/share/busybox - cp ../alternatives dest/usr/share/busybox + done <../alternatives; \ + exec 3>&- set -e; $(config_enabled); $(install_init_script); \ if config_enabled INIT; then \ install -d -m 0755 dest/etc; \ |