From b97027b88ad834915a3125f146d7f04087ddddef Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Thu, 17 May 2007 01:17:54 +0000 Subject: [PATCH] * 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 --- target/share/initrd/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/target/share/initrd/build.sh b/target/share/initrd/build.sh index fc48f89..2a36b2d 100644 --- a/target/share/initrd/build.sh +++ b/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 ..."