]> xenbits.xensource.com Git - people/iwj/colo-for-testing.git/commitdiff
convert-cabinet-layout: sympathy
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 9 Mar 2015 17:48:14 +0000 (17:48 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 9 Mar 2015 17:48:14 +0000 (17:48 +0000)
convert-cabinet-layout

index d9e7e932c20c6ebfa10947c37b8cc1c0f93aca2b..ea2e8a754a7a422946d126a59be18b3c1d7df2d5 100755 (executable)
@@ -81,7 +81,7 @@ while (my $row = $csv->getline_hr($fh)) {
         my $mac = $row->{'MAC addr'} or die "no mac addr\n";
         $mac =~ m/^[0-9a-f]{2}(?:\:[0-9a-f]{2}){5}$/ or die "bad mac\n";
         $mac = $&;
-        outfor 'testhosts.m4',
+        outfor 'playbook/hosts/testhosts.m4',
         sprintf "T%d(\t%d,\t%s,%s\t%s)\n", $net, $host, $machine,
                (length($machine)<=6 ? "\t" : ""), $mac;
     };
@@ -104,6 +104,9 @@ while (my $row = $csv->getline_hr($fh)) {
         my ($physport, $ttyrp) = ($1,$2);
         $physport eq $ttyrp+1 or die "serial numbering mismatch\n";
         setprop 'Serial', "sympathy serial0";
+        outfor '/etc/serialmgr/config',
+        sprintf "serial0:/dev/ttyRP%d:115200:sympathy:root::%s:-B\n",
+            $ttyrp, $machine;
     };
     reportno 'Serial';
 }