#need to make archiso run 2 commands after its done loading

5 messages · Page 1 of 1 (latest)

thick sparrow
#

idk much about archiso but if it's just a system image like i think it is, a systemd user service should work

thick sparrow
#

/home/<user>/.config/systemd/user/<service-name>.service

[Unit]
Description=description of the service
After=
Wants=

[Service]
Restart=on-failure
Type=oneshot
ExecStart=/path/to/script.sh

[Install]
WantedBy=default.target

if the script stays running (like if it runs the DE) then change Type to simple

#

then you'll have to enable it

#

or if it's running as root then do a regular service