Changeset 776 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
May 5, 2009, 3:35:05 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • Fix for VMbuild case only and not other VM type
  • Trying to improve VM snapshot, but still more work to do
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r773 r776  
    13281328        $cpcmd = "scp -i $keyfile -p -o UserKnownHostsFile=/dev/null -P $nport";
    13291329        $cptarget = "$mac:$tdir";
    1330         if ($cmt =~ /^VM/) {
     1330        if ($cmt =~ /^VMbuild/) {
    13311331            $cp2target = "$mac:$bdir";
    13321332        }
     
    14231423            if ((($vmtype->{$ENV{'PBPROJ'}}) eq "kvm") || (($vmtype->{$ENV{'PBPROJ'}}) eq "qemu")) {
    14241424                use Net::Telnet;
    1425                 my $t = new Net::Telnet (Timeout => 10, Host => "localhost", Port => $vmmonport->{$ENV{'PBPROJ'}}) || die "Unable to dialog on the monitor";
     1425                my $t = new Net::Telnet (Timeout => 120, Host => "localhost", Port => $vmmonport->{$ENV{'PBPROJ'}}) || die "Unable to dialog on the monitor";
    14261426                # move to monitor mode
    14271427                my @lines = $t->cmd("c");
     
    23332333    print SCRIPT << 'EOF';
    23342334    #!/bin/bash
    2335    
    2336 EOF
    2337     if ($vtype eq "vm") {
    2338         print SCRIPT "sleep 120\n";
    2339     } else {
    2340         print SCRIPT "sleep 1\n";
    2341     }
    2342 
     2335    sleep 2
     2336EOF
    23432337    close(SCRIPT);
    23442338    chmod 0755,"$pbscript";
Note: See TracChangeset for help on using the changeset viewer.