Commands On Startup


chiefsmurph

Still Fresh
Joined
Aug 2, 2006
Messages
59
I have gotten usb networking set up perfectly, but whenever I want to use it, I have to run "route add default gw 10.1.0.1" from telnet. Is it possible to make it run that whenever it turns on and it is connected via usb?
 
You could make a script that you can execute from the menu to set it - might be a little easier but still not fully automated. The contents of the script would be like:

#!/bin/bash
route add default gw 10.1.0.1


Maybe someone else has some better tips.
 
Does anyone know where that file is because whenever I try to run the command autorun.gpe, it freezes up on a black screen. Even when I put in

exec /menu or whatever it is (dont know it off the top of my head)
 
chiefsmurph posted on Aug 31 2006 at 04:48 AM said:
Does anyone know where that file is because whenever I try to run the command autorun.gpe, it freezes up on a black screen. Even when I put in

exec /menu or whatever it is (dont know it off the top of my head)


It is most likely a problem with your script.

Can you post it here?

One thing you might try is putting a & at the end of your command to force it into the background.

Unless you are experienced with Linux and editing system scripts, you should NOT edit the startup scripts of the GP2X---if you mess up, the unit won't boot. The autorun.gpe is much safer.
 
Last edited by a moderator:
Back
Top