From: Jan Michel Date: Thu, 11 Jul 2013 09:57:23 +0000 (+0200) Subject: changed chains.ini X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=c91343dbea9f8742e3feb20b5b07286e4132d016;p=mvdsensorcontrol.git changed chains.ini --- diff --git a/tools/startup.pl b/tools/startup.pl index 305ff55..e831d59 100755 --- a/tools/startup.pl +++ b/tools/startup.pl @@ -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();