I copied the following:
devn-pegasus.so
devu-ohci
dhcp.client
io-net
libsocket.so.2
libusbdi.so.2
npm-ttcpip.so
usb
You must also have libc.so.2 and have it linked as ldqnx.so.2 in /usr/lib like so:
ln -sPf /nto/lib/libc/so.2 /usr/lib/ldqnx.so.2
put this near the top of /kojak/go
I disabled the default networking and usb support (in /config/rm-apps and startup-warm/main) and added lines to start the qnx 6.1 networking in a file that gets started out of go. Here are the key lines:
#I don't need the serial port
slay devc-ser8250
#start usb support
/nto/bin/devu-ohci &
/kojak/wait_fp /dev/usb
#start networking
on -p 10 /nto/bin/io-net -dpegasus -pttcpip &
/kojak/wait_fp /dev/socket
if_up -r 20 en0
#start dhcp
/nto/bin/dhcp.client -h Audrey -u
#mount shares from windows 2000 box
on -p 10 /nto/bin/fs-cifs -a //gorf2000:192.168.1.105:/music /music guest guest
on -p 10 /nto/bin/fs-cifs -a //gorf2000:192.168.1.105:/audrey /audrey guest guest
#Start telnetd and ftpd
on -p 10 /bin/inetd &
#start phjuke
on -p 10 /nto/photon/bin/phjuke /music &
--------------------------------------------------------
wait_fp is a shell script I wrote/stole to wait for a file to get created:
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
if [ -e $1 ]; then
return 0
else
sleep 1
fi
done
return 1
I hope I haven't missed anything, if you have problems let me know.
Pete