Changeset 6508 in genesis
- Timestamp:
- Dec 29, 2008, 11:14:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nodes/genesis-to-py.pl
r6474 r6508 9 9 # Which gonna be used for more logic stuff ;-) 10 10 11 # 12 # Usage: for file in */wleiden.conf; do ./genesis-to-py.pl $file; done > py.conf11 # Avoid junk node imports, use following line to import valid nodes 12 # Usage: for file in CNode*/wleiden.conf proxy*/wleiden.conf; do ./genesis-to-py.pl $file; done > py.conf 13 13 do($ARGV[0]) || die; 14 14 … … 48 48 'configtype' => 'interface', 49 49 'dhcp' => 'no', 50 'compass-direction' => '', 50 51 ); 51 52 foreach $line (split('\n',$config{$if})) { … … 74 75 } elsif ($key =~ /^essid$/i) { 75 76 $key = 'ssid'; 77 78 # Dirty hack to fetch compass direction of essid 79 $value =~ /[a-z]+-([a-z]+)\..*/; 80 $direction = $1; 81 # Translate into English 82 if ($direction ne "omni") { 83 $direction =~ tr/oz/es/; 84 } 85 $tmp{'compass-direction'} = $direction; 76 86 } elsif ($key =~ /^gain$/i) { 77 87 $value =~ s/dbi//;
Note:
See TracChangeset
for help on using the changeset viewer.