Executing A Command At Startup?


A_SN

Active Member
There it is, I got this command I want to run at every start so the network works correctly :

route add default gw 192.168.0.1 usb0

only problem is, I have no idea how to do this. Tried an autorun.gpu, tried inserting it in some files located in /etc/rc.d/, but nothing did it so far. What's the way to do it?
 
Add it to your crontab and enable crond. That's more battery consumption though. You could try adding it with rc-update if GPLinux has that.
 
Have a look for something like rc.sysinit. I think that's where the menu startup stuff is, but I don't have my gp2x in front of me to check.
 
Back
Top