Report result of scripts execution
authorMichael Prokop <mika@grml.org>
Mon, 6 Jan 2014 14:55:26 +0000 (15:55 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 6 Jan 2014 14:55:26 +0000 (15:55 +0100)
autoconfig.functions

index 22abae3..04bdc80 100755 (executable)
@@ -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