I made a script that controls my system LEDs and it works great. I saved it to
/usr/local/bin/led-pattern and ran
sudo chmod a+x /usr/local/bin/led-pattern so its executable simply by entering the command
led-pattern. Upon doing so, it asks for an administrative password, and upon entering the password, the script runs as intended. However, when added to my list of startup applications, it does not run at login, presumably because of the lack of sudo permissions, as all my other startup scripts that I've made work just fine and don't require permission. How can I make it so that this script runs at startup seamlessly - never asking for any password even though it requires sudo permissions?
Edit: by startup, I mean while it's logging the user on, not while booting up the computer