Skip to content

Commit

Permalink
mkinitramfs-ll.{ba,z}sh: update following minimal.applets
Browse files Browse the repository at this point in the history
  • Loading branch information
tokiclover committed Jan 13, 2015
1 parent de6469b commit 07868c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mkinitramfs-ll.bash
Original file line number Diff line number Diff line change
Expand Up @@ -374,11 +374,10 @@ fi
if [[ ! -f ${opts[-confdir]}/busybox.applets ]]; then
bin/busybox --list-full >${opts[-confdir]}/busybox.applets || die
fi

while read line; do
grep -q ${line} ${opts[-confdir]}/busybox.applets ||
die "${line} applet not found, no suitable busybox found"
done <${opts[-confdir]}/minimal.applets
for bin in $(< ${opts[-usrdir]}/../scripts/minimal.applets); do
grep -q ${bin} ${opts[-confdir]}/busybox.applets ||
die "${bin} applet not found, no suitable busybox found"
done

for bin in $(grep '^bin' ${opts[-confdir]}/busybox.applets); do
ln -s busybox ${bin}
Expand Down
4 changes: 4 additions & 0 deletions mkinitramfs-ll.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ if [[ -x usr/bin/busybox ]] {
if [[ ! -f ${opts[-confdir]}/busybox.applets ]] {
bin/busybox --list-full >${opts[-confdir]}/busybox.applets || die
}
for bin ($(< ${opts[-usrdir]}/../scripts/minimal.applets)) {
grep -q ${bin} ${opts[-confdir]}/busybox.applets ||
die "${bin} applet not found, no suitable busybox found"
}

for bin ($(grep '^bin' ${opts[-confdir]}/busybox.applets))
ln -s busybox ${bin}
Expand Down

0 comments on commit 07868c2

Please sign in to comment.