You are not logged in.

#1 2013-03-15 17:36:35

alucard.nox
Member
From: MA USA
Registered: 2013-03-14
Posts: 4

[Solved] How do i run a list of commands as root on boot

I used slackware for quite some time and it was easy to run a list of commands as root upon boot

i have a series of commands i want to run such as macchanger and modprobe vboxdrv but not sure how to get them to run as root in the background i did see an article on making macchanger run but couldnt seem to get it to work.

in the past i just edited an rc.d file and slapped commands into that and it worked fine but not sure how to do that on arch.  if anyone could point me in the right direction that would be great

Last edited by alucard.nox (2013-03-15 18:04:24)


sudo facepalm

Offline

#2 2013-03-15 17:41:13

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,724
Website

Re: [Solved] How do i run a list of commands as root on boot

For loading modules, read 'man modules-load.d'. For running specific commands, look at 'man systemd.unit systemd.service'


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2013-03-15 18:03:54

alucard.nox
Member
From: MA USA
Registered: 2013-03-14
Posts: 4

Re: [Solved] How do i run a list of commands as root on boot

Great thnx WorMzy.  marking as solved.


sudo facepalm

Offline

Board footer

Powered by FluxBB