Set the hostname, if provided, from ifconfig
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 10 May 2017 18:01:05 +0000 (14:01 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 12 May 2017 20:38:12 +0000 (16:38 -0400)
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/kfs/ifconfig

index ba6316f..4af5e2c 100755 (executable)
@@ -39,6 +39,13 @@ fi
 /bin/bind -a '#ip' /net
 /bin/bind -a '#ether'.$NIC /net
 
+# Need to set /dev/sysname before ipconfig.  ipconfig will grab this and put it
+# in ndb.
+if [ "x$HOST" != "x" ]
+then
+       echo "$HOST" > /dev/sysname
+fi
+
 if [ -x /bin/ipconfig ]
 then
        if [ -n "$me" ]