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

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
dbsoundman
Ronin
Ronin
Posts: 1
Joined: 28 Dec 2023, 14:14
Distribution: Kiosk

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

Post#1 by dbsoundman » 28 Dec 2023, 14:36

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.)

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

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

Post#2 by Ed_P » 29 Dec 2023, 01:44

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
Ed

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

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

Post#3 by fanthom » 29 Dec 2023, 09:01

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
Please add [Solved] to your thread title if the solution was found.

Locked