]> Zhao Yanbai Git Server - minix.git/commitdiff
Set ip address manually without dhcp when psip is set in /etc/inet.conf.
authorBen Gras <ben@minix3.org>
Tue, 28 Mar 2006 12:35:33 +0000 (12:35 +0000)
committerBen Gras <ben@minix3.org>
Tue, 28 Mar 2006 12:35:33 +0000 (12:35 +0000)
etc/usr/rc

index b780e1a92e3526a561736abdf101a35365852a14..8d8dcbf365e852e2e0fcf099082e69803df5564a 100644 (file)
@@ -126,6 +126,10 @@ start)
        else
            # Standard network daemons.
            echo -n "Starting networking:"
+           if grep psip /etc/inet.conf >/dev/null
+           then        ifconfig -h 10.0.0.1
+           else        daemonize dhcpd
+           fi
            daemonize dhcpd
            daemonize nonamed
            daemonize talkd