]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
removed unnecessary code for etrax commands, mt
authorHadaq Hades <jan@lxhadeb07>
Fri, 13 Aug 2021 13:08:57 +0000 (15:08 +0200)
committerHadaq Hades <jan@lxhadeb07>
Fri, 13 Aug 2021 13:08:57 +0000 (15:08 +0200)
main/startup.pl

index 8b9c69776dd7821ae9af2b8fe03eabf527b004ff..91346d667d0e13fe532684f391d4f9b7a439edcc 100755 (executable)
@@ -1094,26 +1094,29 @@ sub cmdParam() {
     croak "cmdParam: unexpected etrax name: $etrax. Exit.\n";
   }
 
-  my $eb_port = $EB_Args_href->{'Main'}->{'PORT_BASE'} + $trbnum;
-  my $eb_ip   = $EB_Args_href->{'Main'}->{'EB_IP'};
-
-  #- replace TRBNUM
-  $cmd =~ s{                # Substitue...
-               \$\{TRBNUM\}     # ...a parameter
-             }
-             {$trbnum}gxms;    # Raplace it with a TRB number
-
-  #- replace EBIP
-  $cmd =~ s{                # Substitue...
-               \$\{EBIP\}       # ...a parameter
-             }
-             {$eb_ip}gxms;     # Raplace it with a EB IP
-
-  #- replace EBPORT
-  $cmd =~ s{                # Substitue...
-               \$\{EBPORT\}     # ...a parameter
-             }
-             {$eb_port}gxms;    # Raplace it with a EB PORT
+  ## removed unnecessary code: MT, 2021-08-13
+  # print "EB_Args:\n";
+  # print Dumper $EB_Args_href;
+  # my $eb_port = $EB_Args_href->{'Main'}->{'PORT_BASE'} + $trbnum;
+  # my $eb_ip   = $EB_Args_href->{'Main'}->{'EB_IP'};
+
+  # #- replace TRBNUM
+  # $cmd =~ s{                # Substitue...
+  #              \$\{TRBNUM\}     # ...a parameter
+  #            }
+  #            {$trbnum}gxms;    # Raplace it with a TRB number
+
+  # #- replace EBIP
+  # $cmd =~ s{                # Substitue...
+  #              \$\{EBIP\}       # ...a parameter
+  #            }
+  #            {$eb_ip}gxms;     # Raplace it with a EB IP
+
+  # #- replace EBPORT
+  # $cmd =~ s{                # Substitue...
+  #              \$\{EBPORT\}     # ...a parameter
+  #            }
+  #            {$eb_port}gxms;    # Raplace it with a EB PORT
 
   $cmd = "source /home/hadaq/.bashrc; " . $cmd if ( $etrax =~ /hades?\w(\d{2})/ );