This changes to the boot scripts allow switching to lwip simply by
setting lwip=yes in the boot monitor.
kill_by_name nonamed
kill_by_name syslogd
sleep 3
-service up /usr/sbin/inet -script /etc/rs.inet
-daemonize dhcpd
+if [ X`/bin/sysenv lwip` = Xyes ]
+then
+ service up /usr/sbin/lwip -script /etc/rs.inet
+ dhcpd --lwip &
+else
+ service up /usr/sbin/inet -script /etc/rs.inet
+ daemonize dhcpd
+fi
daemonize nonamed -L
daemonize syslogd
pci device 4033/1360;
ipc
SYSTEM pm rs log tty ds vm
- pci inet amddev
+ pci inet lwip amddev
;
};
pci device 8086/2449;
ipc
SYSTEM pm rs log tty ds vm
- pci inet amddev
+ pci inet lwip amddev
;
};
uid 0;
};
+service lwip
+{
+ uid 0;
+};
+
service random
{
};
;
ipc
SYSTEM pm rs log tty ds vfs vm
- pci inet amddev
+ pci inet lwip amddev
;
uid 0;
};
pci device 1737/1032;
ipc
SYSTEM pm rs log tty ds vm
- pci inet amddev
+ pci inet lwip amddev
;
};
pci device 8086/10de;
ipc
SYSTEM pm rs log tty ds vm
- pci inet ;
+ pci inet lwip ;
};
service atl2
pci device 1969/2048;
ipc
SYSTEM pm rs tty ds vm
- pci inet
+ pci inet lwip
;
};
pci device 1011/0009;
ipc
SYSTEM pm rs log tty ds vm
- pci inet
+ pci inet lwip
;
};
;
ipc
SYSTEM pm rs log tty ds vm vfs
- pci inet amddev
+ pci inet lwip amddev
;
uid 0;
};
arg="-args \"instance=$instance$arg\""
eval up $driver -label $label $arg -period 5HZ
done
- up inet -script /etc/rs.inet -dev /dev/ip -devstyle STYLE_CLONE
+ if [ X`/bin/sysenv lwip` = Xyes ]
+ then
+ up lwip -script /etc/rs.inet -dev /dev/ip -devstyle STYLE_CLONE
+ else
+ up inet -script /etc/rs.inet -dev /dev/ip -devstyle STYLE_CLONE
+ fi
up -n printer -dev /dev/lp -period 10HZ
up -n ipc
echo .
if grep -s 'psip0.*default' /etc/inet.conf >/dev/null
then ifconfig -h 10.0.0.1
else
- daemonize dhcpd
+ if [ X`/bin/sysenv lwip` = Xyes ]
+ then
+ dhcpd --lwip &
+ echo -n " dhcpd"
+ else
+ daemonize dhcpd
+ fi
fi
daemonize nonamed -L
if [ -f "$DAEMONS" ]