Boot Issue involving TCPIP Init in rc.local

My rc.local file contains the following:
#start of file
slay -f io-net
io-net -del900 -p tcpip -p pppmgr
sleep 5
ifconfig en0 <my_ip> netmask 255.255.255.0 up
route add default <my_gateway>
/usr/sbin/inetd
#end of file

And this is located in /etc/rc.d and it is executable. But upon the reboot,
where this is read automatically, I see the route modification, but then get
the following:

start of output

Starting extra run commands add net default: gateway Unable to start fontsleuth Please confirm that Photon installed properly #end of output and no Photon session started

I can then boot safely QNX alone using the altboot, move the rc.local to
somewhere else, and boot fine. Moreover, I can then run rc.local as a
script, and the network is set up properly using the full tcpip vs the
ttcpip. Anyone have any clues as to why I’m not able to simply use this
rc.local script in the /etc/rc.d directory? Just wondering…

Just a thought, but, did you edit any of the startup files:
/etc/system/sysinit, /etc/rc.d/rc.sysinit, etc. with ped? ped adds some
extra junk at the end of any file you edit. The shell tries to execute the
junk that ped added and you’ll get a bunch of weird errors.

Check all your startup files with vi.

-bill

“Robert E. Johnson” <scooter@tecmasters.com> wrote in message
news:8sfnbq$k0q$1@inn.qnx.com

My rc.local file contains the following:
#start of file
slay -f io-net
io-net -del900 -p tcpip -p pppmgr
sleep 5
ifconfig en0 <my_ip> netmask 255.255.255.0 up
route add default <my_gateway
/usr/sbin/inetd
#end of file

And this is located in /etc/rc.d and it is executable. But upon the
reboot,
where this is read automatically, I see the route modification, but then
get
the following:

start of output

usual boot output
Starting extra run commands
add net default: gateway <my_gateway
Unable to start fontsleuth
Please confirm that Photon installed properly
#end of output and no Photon session started

I can then boot safely QNX alone using the altboot, move the rc.local to
somewhere else, and boot fine. Moreover, I can then run rc.local as a
script, and the network is set up properly using the full tcpip vs the
ttcpip. Anyone have any clues as to why I’m not able to simply use this
rc.local script in the /etc/rc.d directory? Just wondering…