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)
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to