Writing in /root
wear the flash but survives reboots. Writing in /tmp
doesn't wear the flash but doesn't survive reboots - no "free lunch" as you can see
Writing in /sys/class/leds
doesn't wear the flash nor survive reboots
If you want to test scripts you can write in tmp and move to root after done testing
1 Like