diff options
Diffstat (limited to 'sys-boot/myinitramfs/files/gen.sh')
-rwxr-xr-x | sys-boot/myinitramfs/files/gen.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-boot/myinitramfs/files/gen.sh b/sys-boot/myinitramfs/files/gen.sh index b633731..916ba84 100755 --- a/sys-boot/myinitramfs/files/gen.sh +++ b/sys-boot/myinitramfs/files/gen.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/ash set -e OUT="$(readlink -f "$1")" @@ -14,11 +14,11 @@ cp baselist "$LIST" echo "file /init ./init.enc 755 0 0" >> "$LIST" echo >> "$LIST" # Executables -while read EXE; do +while read -r EXE; do P="$(which "$EXE")" echo "# $EXE" >> "$LIST" echo "file $P $P 755 0 0" >> "$LIST" - ldd "$P" | awk '{ print $3 }' | sed -n '/^[^ ]\+$/p' | while read LIB; do + ldd "$P" | awk '{ print $3 }' | sed -n '/^[^ ]\+$/p' | while read -r LIB; do echo "file $LIB $LIB 755 0 0" >> "$LIST" done done <exelist |