Hostname != OpenWrt (untested!!)

This commit is contained in:
reddog 2011-06-30 18:25:45 +00:00
parent 9b339e1413
commit 5f4bdffc34
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ if [ "$SERVER" == "no" ]
then
hostname=$(cat /proc/sys/kernel/hostname)
if [ "$hostname" == "OpenWrt" ]
hostname=""
fi
if [ "$hostname" == "" ]
hostname=$(ifconfig br-mesh | grep HWaddr | awk '{ print $5 }'|sed -e 's/://g')
fi