rc-scripts/trunk/sysconfig/network-scripts/functions.network

glen cvs at pld-linux.org
Tue May 23 17:38:50 CEST 2006


Author: glen
Date: Tue May 23 17:38:47 2006
New Revision: 7436

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/functions.network
Log:
Try harder to get value for WLAN_NICKNAME.

Modified: rc-scripts/trunk/sysconfig/network-scripts/functions.network
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/functions.network	(original)
+++ rc-scripts/trunk/sysconfig/network-scripts/functions.network	Tue May 23 17:38:47 2006
@@ -444,7 +444,7 @@
 	fi
 
 	if [ -z "$(eval echo \$${prefix}WLAN_NICKNAME)" ]; then
-		 WLAN_NICKNAME="$(hostname -f)"
+		 WLAN_NICKNAME="$(hostname -f 2>/dev/null || hostname 2>/dev/null || echo localhost)"
 	else
 		 WLAN_NICKANME="$(eval echo \$${prefix}WLAN_NICKNAME)"
 	fi


More information about the pld-cvs-commit mailing list