diff --git a/openwisp-config/files/openwisp.agent b/openwisp-config/files/openwisp.agent index 90f0179..bc01ab8 100644 --- a/openwisp-config/files/openwisp.agent +++ b/openwisp-config/files/openwisp.agent @@ -85,7 +85,7 @@ register() { -t openwisp \ -p daemon.info local hostname=$(uci get system.@system[0].hostname) - if [ $hostname = "OpenWrt" ]; then + if [ "$hostname" == "OpenWrt" ] || [ "$hostname" == "lede" ]; then # gets the mac address of the first interface that shows in ifconfig hostname=$(ifconfig | grep -v lo | grep HWaddr | awk '/HWaddr/ { print $5 }' | head -n 1) fi