5

Systemd: /etc/rc.local Functionality

view full story
linux-howto

https://bbs.archlinux.org – Have a look at the man page for tmpfiles.d, I'm pretty sure that's exactly what you're looking for as far as sticking values into files in sysfs on boot.  Also, in general you can stick '/bin/sh -c' in as the ExecStart to do whatever you want, including echoing things and redirecting it into files, and chain them together with a semicolon in between.  For a silly example:[Unit] Description=Test echoing into files [Service] Type=oneshot ExecStart=/bin/sh -c 'echo "It works" > /home/rob/testfile' ; /bin/sh -c 'echo "like a char (HowTos)