1 # main newos boot script
3 # configure the network
4 exec /boot/bin/netcfg if create /dev/net/rtl8139/0 > /dev/null
5 exec /boot/bin/netcfg if addaddr /dev/net/rtl8139/0 ipv4 addr 192.168.0.98 mask 255.255.255.0 broadcast 192.168.0.255 > /dev/null
6 exec /boot/bin/netcfg route add net ipv4 addr 192.168.0.0 mask 255.255.255.0 if /dev/net/rtl8139/0 ipv4 addr 192.168.0.98 > /dev/null
8 # the following settings put the pcnet32 device on my (graham's) vmware NAT setup. This may need modification.
9 exec /boot/bin/netcfg if create /dev/net/pcnet32/0 > /dev/null
10 exec /boot/bin/netcfg if addaddr /dev/net/pcnet32/0 ipv4 addr 192.168.0.99 mask 255.255.255.0 broadcast 192.168.0.255 > /dev/null
11 exec /boot/bin/netcfg route add net ipv4 addr 192.168.0.0 mask 255.255.255.0 if /dev/net/pcnet32/0 ipv4 addr 192.168.0.99 > /dev/null
13 # if you want to use internet addresses through pcnet32 you will have to modify the following line in the obvious ways.
14 exec /boot/bin/netcfg route add default ipv4 addr 192.168.0.1 if /dev/net/pcnet32/0 ipv4 addr 192.168.0.99 > /dev/null
16 # start network daemons
17 exec /boot/bin/socketd 23 /boot/bin/telnetd /boot/bin/shell -s /boot/loginscript &
18 exec /boot/bin/socketd 1900 /boot/bin/telnetd /boot/bin/shell -s /boot/loginscript &
20 # start the console daemon
21 exec /boot/bin/consoled > /dev/null