Skip to content

Commit

Permalink
Added support for LEDE
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed May 10, 2016
1 parent 1edf21e commit 9ef6f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwisp-config/files/openwisp.agent
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ef6f93

Please sign in to comment.