]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Try harder to get value for WLAN_NICKNAME.
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 23 May 2006 15:38:47 +0000 (15:38 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 23 May 2006 15:38:47 +0000 (15:38 +0000)
svn-id: @7436

sysconfig/network-scripts/functions.network

index a68661551fc91c3c0081ebf6e85fadea2efdab0f..cc7f75e36da838fb2c426aaa57fe35454901baa9 100644 (file)
@@ -444,7 +444,7 @@ wireless_param ()
        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
This page took 0.034881 seconds and 4 git commands to generate.