SVN: rc-scripts/trunk/lib/ifup

glen glen at pld-linux.org
Sun Oct 20 12:49:37 CEST 2013


Author: glen
Date: Sun Oct 20 12:49:37 2013
New Revision: 12726

Modified:
   rc-scripts/trunk/lib/ifup
Log:
set DHCP_HOSTNAME only basename, domain part is filled by dhcp server


Modified: rc-scripts/trunk/lib/ifup
==============================================================================
--- rc-scripts/trunk/lib/ifup	(original)
+++ rc-scripts/trunk/lib/ifup	Sun Oct 20 12:49:37 2013
@@ -146,7 +146,8 @@
 		DHCP_ARGS=
 		if [ -n "$DHCP_CLIENT" ]; then
 			if [ -z "$DHCP_HOSTNAME" ]; then
-				DHCP_HOSTNAME="$HOSTNAME"
+				# set DHCP_HOSTNAME only basename
+				DHCP_HOSTNAME=${HOSTNAME%%.*}
 			fi
 			case ${DHCP_CLIENT##*/} in
 			  pump)


More information about the pld-cvs-commit mailing list