- set hostname when configuring statically
authorMark Huang <mlhuang@cs.princeton.edu>
Mon, 3 Apr 2006 19:28:21 +0000 (19:28 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Mon, 3 Apr 2006 19:28:21 +0000 (19:28 +0000)
conf_files/pl_netinit

index 1aced1b..bf662d2 100644 (file)
@@ -320,6 +320,7 @@ else
     /sbin/ifconfig $ETH_DEVICE $IP_ADDRESS broadcast $IP_BROADCASTADDR \
        netmask $IP_NETMASK
     /sbin/route add default gw $IP_GATEWAY dev $ETH_DEVICE
+    /bin/hostname "$HOST_NAME.$DOMAIN_NAME"
 
     if [[ -z "$IP_DNS1" ]]; then
        echo "pl_netinit: no dns server specified, cannot continue."