summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoregon0 <ms@resonar.de>2011-06-24 14:17:08 (GMT)
committeregon0 <ms@resonar.de>2011-06-24 14:17:08 (GMT)
commit65e9e0b29495055ecbff18a64b0256f42c8e7633 (patch)
tree104c88a172c02c6af9c407b6c85dd3a1b8a461a4
parent9004d72b6cf1f800a788c337add6b7ec34dd8c96 (diff)
* added ath0 mac to n2n-devices, for better identification of nodes reachable via n2n
-rwxr-xr-xfiles/etc/init.d/n2n3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/etc/init.d/n2n b/files/etc/init.d/n2n
index a069d83..24e0050 100755
--- a/files/etc/init.d/n2n
+++ b/files/etc/init.d/n2n
@@ -16,9 +16,10 @@ config_cb() {
config_get key "$cfg" key
config_get_bool route "$cfg" route 0
config_get devname "$cfg" devname
+ node_mac=`ifconfig ath0 | grep HWaddr | awk '{print $5}' | tr -d "\n"`
[ "$route" = "1" ] && args='-r'
if [ "$ipaddr" != "" ]; then
- edge -f $args -a 169.254.0.1 -d $devname -c $community -k $key -l ${supernode}:${port}
+ edge -f $args -a 169.254.0.1 -d $devname -c $community -k $key -m ${node_mac} -l ${supernode}:${port}
ifconfig $devname 0.0.0.0
batctl if add $devname
fi
contact: Jan Huwald // Impressum