I am currently using Debain Bookworm on an Orange Pi Zero2 to run pihole and just general testing.
The board is on my desk in an acrylic case and by default the green LED blinks when the system is running.
Orange Pi provides guides to alter the behaviour of the LEDs but they are discarded on boot. So I have to run the command every time I reboot the machine.
So the behaviour is set to heartbeat by default and it goes back to it after reboot.The method of setting the green light on/off and flashing is as follows:
Note that the following operations should be performed under the root user.
First enter the setting directory of the green light
root@orangepi:~# cd /sys/class/leds/green_led
The command to set the green light to stop flashing is as follows
root@orangepi:/sys/class/leds/green_led# echo none > trigger
The command to set the green light to be on is as follows
root@orangepi:/sys/class/leds/green_led# echo default-on > trigger
root@orangepi:/sys/class/leds/green_led# echo default-on > trigger
The command to set the green light to flash is as follows
root@orangepi:/sys/class/leds/green_led# echo heartbeat > trigger
Is there a way that I can run the instructions at boot or login so they stick? Or is there a file that I could modify?
The system is running headless so I operate via SSH.
Thank you for any help you could provide me on this.
Kind regards.