#!/bin/sh -e
rc=0

for i in /etc/easy-boot.d/*; do
  [ -x "$i" ] || continue
  printf '>>> %s\n' "${i##*/}" >&2
  if ! "$i"; then
    printf '>>> Kernel boot hook failed!\n' >&2
    rc="$((rc + 1))"
  fi
done

exit "$rc"