Page 1 of 1

Super confused- how to set up a command to run at boot?

Posted: 28 Dec 2023, 14:36
by dbsoundman
Hi all, new to Porteus but not new to Linux at all. I'm using the Kiosk variant on some laptops and need to set the brightness as Porteus doesn't support the keyboard brightness controls. I found the way to set the brightness:

Code: Select all

echo 9500 > /sys/class/backlight/intel_backlight/brightness
Now I'm trying to set this value on boot but I'm really not clear on how to set this as a persistent startup operation. I saw some reference to adding this to /etc/rc.d/rc.local, but just writing to the file doesn't persist after rebooting. I'm seeing a lot of references to a save(?) file and some possible editing of the GRUB command line to read configuration from...a USB drive I guess?...at boot, but no definitive documentation on how to actually do this. I'm sure I'm just looking in the wrong places. I'd truly appreciate pointers here.

(FWIW I don't have Porteus Server set up yet so I can't use that.)

Super confused- how to set up a command to run at boot?

Posted: 29 Dec 2023, 01:44
by Ed_P
Check out some of the threads in this section of the forum for other users who may have had a similar need.

Porteus Kiosk Edition

Super confused- how to set up a command to run at boot?

Posted: 29 Dec 2023, 09:01
by fanthom
Hello dbsoundman,

Kiosk systems are configured using parameters. Please add this one to your kiosk config in order to achieve your goal:
https://porteus-kiosk.org/parameters.html#run_command

Thanks