You may run it using @reboot in the same crontab or take advantage of your init system (sysvinit / systemd / etc). But you'll now have to calculate the desired led state (on/off) in your run command or script, which can be achieved by simply comparing the current 24-h formatted hour value with 6 and 18.
You may run it using @reboot in the same crontab or take advantage of your init system (sysvinit / systemd / etc). But you'll now have to calculate the desired led state (on/off) in your run command or script, which can be achieved by simply comparing the current 24-h formatted hour value with 6 and 18.
This can be compacted to an one (and ugly) one-liner and put everywhere. A bit more civilized way would be to leave it as a shell script.