From: Michael Prokop Date: Mon, 6 Jan 2014 14:55:26 +0000 (+0100) Subject: Report result of scripts execution X-Git-Tag: v0.11.2~1 X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=74288c3e75449b13db626cc891bdb0622218f992 Report result of scripts execution --- diff --git a/autoconfig.functions b/autoconfig.functions index 22abae3..04bdc80 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1744,12 +1744,15 @@ if checkbootparam 'scripts' || [ "$DCSMP" = "/mnt/grmlcfg" ]; then if [ "$DCSMP" = "/mnt/grmlcfg" ]; then einfo "Trying to execute ${SCRIPTS}" sh -c $SCRIPTS + eend $? elif [ -d "$SCRIPTS" ]; then einfo "Bootparameter scripts found. Trying to execute from directory ${SCRIPTS}:" run-parts --regex '.*' $SCRIPTS + eend $? else einfo "Bootparameter scripts found. Trying to execute ${SCRIPTS}:" sh -c $SCRIPTS + eend $? fi fi fi