diff options
| author | egon_ffj <egon@freifunk-jena.de> | 2012-04-06 16:37:51 (GMT) | 
|---|---|---|
| committer | egon_ffj <egon@freifunk-jena.de> | 2012-04-06 16:37:51 (GMT) | 
| commit | 7e928ded89a275f282d2e25040c33319045ee5c9 (patch) | |
| tree | 3845f8561a204bf7bab21be6550aee60b219f706 /files/common/etc | |
| parent | 2cc2b51cb019357a5b3b89bef8817b35a8e51c5b (diff) | |
 * removed broken, hardcoded n2n-interface mac-adress setting
Diffstat (limited to 'files/common/etc')
| -rwxr-xr-x | files/common/etc/init.d/n2n | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/files/common/etc/init.d/n2n b/files/common/etc/init.d/n2n index 26f2e72..0b42008 100755 --- a/files/common/etc/init.d/n2n +++ b/files/common/etc/init.d/n2n @@ -16,11 +16,9 @@ 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" | cut -c6-`  			[ "$route" = "1" ] && args='-r'  			if [ "$ipaddr" != "" ]; then -        mac_random=`echo $(head -30 /dev/urandom | tr -dc "0123456789" | head -c2)` -				edge -f $args -a 169.254.0.1 -d $devname -c $community -k $key -m 12:${mac_random}${node_mac} -l ${supernode}:${port} +				edge -f $args -a 169.254.0.1 -d $devname -c $community -k $key -l ${supernode}:${port}  				ifconfig $devname 0.0.0.0  				batctl if add $devname  			fi | 
