new hostnames for tinc - untested!

This commit is contained in:
reddog 2011-06-30 17:54:42 +00:00
parent 0b6d5e5c20
commit 9b339e1413
1 changed files with 5 additions and 1 deletions

View File

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