- Timestamp:
- Nov 3, 2010, 12:55:55 AM (14 years ago)
- Location:
- tools
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/genesis-to-yaml.pl
r8621 r8644 65 65 longitude : $lon 66 66 masterip : $master_ip 67 release : $release 67 68 nodename : $nodename 68 69 nodetype : $nodetype … … 72 73 EOF 73 74 75 if ($ileiden =~ /yes/) { 76 print "ileiden : yes\n"; 77 } else { 78 print "ileiden : no\n"; 79 } 74 80 75 81 foreach $if (keys %config) { … … 98 104 } else { 99 105 $value = '11b'; 106 } 107 } elsif ($key =~ /^status$/i) { 108 if ($value eq 'up') { 109 $value = 'up'; 110 } else { 111 $value = 'down'; 100 112 } 101 113 } elsif ($key =~ /^mode$/i) { … … 133 145 $value =~ s/dbi//; 134 146 } 147 # Als key niet bestaat, Dan key toevoegen 135 148 $tmp{lc($key)} = $value; 136 149 } 150 } 151 # Status 152 if ( ! $tmp{status} ) { 153 $tmp{status} = 'up'; 137 154 } 138 155 # ethernet2wifi bridges
Note:
See TracChangeset
for help on using the changeset viewer.