You are not logged in.

#1 2010-03-13 03:45:39

trend900
Member
Registered: 2009-01-17
Posts: 14

How to run commands at startup as root

Hi guys, i need to run these commands at startup as root

echo -n 180 > /sys/devices/platform/i8042/serio1/serio2/speed
echo -n 250 > /sys/devices/platform/i8042/serio1/serio2/sensitivity

I had tried /etc/rc.local, but i got an error that says "No such a file". Apparently the file still does not exist at the time these commands are called, but they exist when im logged on my gnome desktop.

What can i do?

Offline

#2 2010-03-13 04:56:31

evr
Arch Linux f@h Team Member
Registered: 2009-01-23
Posts: 554

Re: How to run commands at startup as root

you could try putting a sleep command in front of them so the commands execute after the files exist.

Offline

#3 2010-03-13 12:02:51

trend900
Member
Registered: 2009-01-17
Posts: 14

Re: How to run commands at startup as root

worked with sleep 4

thanks smile

Offline

Board footer

Powered by FluxBB