Browse Source

* improved initrd target output format to install target/$target/init.sh

as /init if available.


git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21057 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
b97027b88a
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      target/share/initrd/build.sh

+ 8
- 0
target/share/initrd/build.sh

@ -45,6 +45,14 @@ done
#
[ -z "$INITRD_POSTFLIST_HOOK" ] || eval "$INITRD_POSTFLIST_HOOK"
if [ -r "target/$target/init.sh" ]; then
echo_status "Copying target's /init script."
cp "target/$target/init.sh" "${initrddir}/init"
chmod +x "${initrddir}/init"
else
echo_warning "Target '$target' doesn't provide an init script."
fi
# remove empty folder, use $INITRD_EMPTY_PATTERN to skip folders
#
echo_status "Removing empty folders ..."

Loading…
Cancel
Save