From: Mark Huang Date: Mon, 3 Apr 2006 19:28:21 +0000 (+0000) Subject: - set hostname when configuring statically X-Git-Tag: bootcd-3.4-2~94 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ef6997700c4a74c994e99c0eb06c5ccab2ee990b;p=bootcd.git - set hostname when configuring statically --- diff --git a/conf_files/pl_netinit b/conf_files/pl_netinit index 1aced1b..bf662d2 100644 --- a/conf_files/pl_netinit +++ b/conf_files/pl_netinit @@ -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."