Help - Search - Members - Calendar
Full Version: Commands On Startup
GP32X.com - GP32 GP2X Pandora The Wiz - open source entertainment > GP2X > General talk [GP2X]
chiefsmurph
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?
BradN
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.
krosfyah
how about putting it in autorun.gpu ?
nickspoon
There's a file you can edit somewhere. I forget where.
chiefsmurph
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)
Optimistic
QUOTE(chiefsmurph @ Aug 31 2006, 04:48 AM) *

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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.