From 5f4bdffc34dd76e16c71b656f5e953696d233912 Mon Sep 17 00:00:00 2001 From: reddog Date: Thu, 30 Jun 2011 18:25:45 +0000 Subject: [PATCH] Hostname != OpenWrt (untested!!) --- root_file_system/default/etc/tincstart.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/root_file_system/default/etc/tincstart.sh b/root_file_system/default/etc/tincstart.sh index b741eab..1dbd5ee 100755 --- a/root_file_system/default/etc/tincstart.sh +++ b/root_file_system/default/etc/tincstart.sh @@ -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