I've certain scripts placed in /etc/kernel post*.d to update the kernel
and init in the efi system partition.
This's the script --
#! /bin/bash
cp -Lf /vmlinuz /efi/linux.efi
cp -Lf /initrd.img /efi
I tried echoing somthing and it did not produce any output.
The file is world and user executable/readable and owned by root.