Signed-off-by: Ben Hutchings <[email protected]>
---
 hook-functions    | 2 +-
 scripts/functions | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/hook-functions b/hook-functions
index 4b062b7..ee1c205 100644
--- a/hook-functions
+++ b/hook-functions
@@ -720,7 +720,7 @@ cache_run_scripts()
        runlist=$(get_prereq_pairs | tsort)
        for crs_x in ${runlist}; do
                [ -f ${initdir}/${crs_x} ] || continue
-               echo "${scriptdir}/${crs_x}" >> ${initdir}/ORDER
+               echo "${scriptdir}/${crs_x} \"\$@\"" >> ${initdir}/ORDER
                echo "[ -e /conf/param.conf ] && . /conf/param.conf" >> 
${initdir}/ORDER
        done
 }
diff --git a/scripts/functions b/scripts/functions
index 8f9f0ba..d2266da 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -74,6 +74,7 @@ run_scripts()
        initdir=${1}
        [ ! -d ${initdir} ] && return
 
+       shift
        . ${initdir}/ORDER
 }
 


-- 
Ben Hutchings
Anthony's Law of Force: Don't force it, get a larger hammer.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to