ifconfig: invoke ipconfig with `-P` when configuring loopback.
authorDan Cross <crossd@gmail.com>
Fri, 7 Oct 2016 20:18:30 +0000 (16:18 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 11 Oct 2016 18:28:04 +0000 (14:28 -0400)
Don't overwrite cached data from the DHCP server.

Change-Id: Ie7d3ad4be5d9cf6aeb4def7d8c47ffefe522c80d
Signed-off-by: Dan Cross <crossd@gmail.com>
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/kfs/ifconfig

index 237e599..86df849 100755 (executable)
@@ -60,7 +60,7 @@ then
                # No explicit configuration; use DHCP.
                daemonize /bin/ipconfig -S ether /net/ether$NIC
        fi
-       ipconfig loopback /dev/null 127.0.0.1
+       ipconfig -P loopback /dev/null 127.0.0.1
 else
        if [ -z "$me" ]
        then