Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - /etc/rc.d/rc.local: (2 Items)
   
/etc/rc.d/rc.local  
Hi.

I'm trying to auto-start the network drivers for my system.

io-net -dasix -ptcpip

ifconfig en0 192.9.200.9

route add default 192.9.200.40

inetd &

Where should I put these?

I tried the /etc/rd.d/rc.local file, but for some odd reason, the ifconfig line fails.

TIA

Augie
RE: /etc/rc.d/rc.local  
Hi Augie,

You need to wait for io-net to finish initializing. You should also know
that io-net is always started by the enumerators in order to provide the
loopback device. In that case you just need to mount your device.

Try this in your rc.local file:

	# Load the network driver (io-net is always running)
	mount -Tio-net asix

	# Wait for the mount to finish
	waitfor /dev/io-net/en0
	ifconfig en0 192.9.200.9

	# Wait for the interface to be configured
	if_up en0

	# Now the interface is present and configured. Start whatever TCP/IP

	# servers, etc.
	route add default 192.9.200.40
	inetd &

The important things are the waitfor and if_up statements. The network
driver and interface need to be active and configured before starting things
like inetd.

Hope that helps,
Keith Russell

-----Original Message-----
From: Augie Henriques [mailto:augieh@scieng.com] 
Sent: March 14, 2008 08:09
To: momentics-community
Subject: /etc/rc.d/rc.local

Hi.

I'm trying to auto-start the network drivers for my system.

io-net -dasix -ptcpip

ifconfig en0 192.9.200.9

route add default 192.9.200.40

inetd &

Where should I put these?

I tried the /etc/rd.d/rc.local file, but for some odd reason, the ifconfig
line fails.

TIA

Augie

_______________________________________________
QNX Momentics Community Support
http://community.qnx.com/sf/go/post5801