How to customize update.sh file using patch

Hi Team,
I would like to customize update.sh file(via patch), so that I am able to build my custom image with customized update.sh file.
We have tried by creating a new recipes with similar architecture as that of the source code for patch in our custom layer.
Directory:
oe-core/layers/meta-mylayer/recipes-images/images/files/library/imx6$ ls
0001-Modified-update.sh.patch
But, it seems the patch is not working.

Please suggest a way to solve this.
Thank you.

Regards
Surajeet

Hi Team,

Could you please suggest a way.

Regards
Surajeet

Welcome to Toradex Community!

Could you please explain what change you want to do in update.sh?

Also please see below community links,
link1
link2
link3