]> jspc29.x-matter.uni-frankfurt.de Git - mvdsensorcontrol.git/commitdiff
changed chains.ini
authorJan Michel <j.michel@gsi.de>
Thu, 11 Jul 2013 09:57:23 +0000 (11:57 +0200)
committerJan Michel <j.michel@gsi.de>
Thu, 11 Jul 2013 09:57:23 +0000 (11:57 +0200)
tools/startup.pl

index 305ff5505b3cc55960d9b7f28ec356219fe8e472..e831d59d35bb306ddaa3ae396d7341da85275151 100755 (executable)
@@ -86,7 +86,7 @@ foreach my $curctrl ($db->getDocumentElement->findnodes('controller')) {
       print STDERR "    Found config\n" if $verbose;
       push(@commands,"./ui.pl -b $ctrlname -c $chainname -o ".$cfg->textContent());
       }
-    $chainsini->{$ctrlid} .= proto_chainsini($chainname,$chainid,$ctrladdr,\@sname,\@sfile,\@senable);
+    $chainsini .= proto_chainsini($chainname,$chainid,$ctrladdr,\@sname,\@sfile,\@senable);
     sensorini(\@sfile);
     }
   foreach my $cfg ($curctrl->findnodes('config')) {
@@ -103,11 +103,9 @@ my $boardsinifile = FileHandle->new($defaultIniPath."/boards.ini", 'w');
 print $boardsinifile $boardsini;
 $boardsinifile->close();
   
-foreach my $c (keys $chainsini) {
-  my $chainsinifile = FileHandle->new($defaultIniPath."/chains_board$c.ini", 'w');
-  print $chainsinifile $chainsini->{$c};
-  $chainsinifile->close();
-  }
+my $chainsinifile = FileHandle->new($defaultIniPath."/chains.ini", 'w');
+print $chainsinifile $chainsini->{$c};
+$chainsinifile->close();