Hi @gaurav_bankar,
I hope you are doing well.
One can create a custom script (that turns off led ) and put that into /etc/profile.d/
e.g.
ledturn_off.sh
#! /bin/sh
# turn off led gpio
gpioset -c gpiochip<x> <pin>=0
# chmod 744 ledturn_off.sh
# mv ledturn_off.sh /etc/profiles.d/
=> One can also create a yocto recipe to automate the above steps.
Please specify the gpio number for led and whether led is configured using a led class or as normal gpio.
Thanks & Regards,
Dhruvit Vasavada