Changeset 1091 in ProjectBuilder


Ignore:
Timestamp:
Sep 16, 2010, 2:20:43 AM (14 years ago)
Author:
Bruno Cornec
Message:

r4067@localhost: bruno | 2010-09-16 02:00:43 +0200

  • halt command is in another path on Solaris so adding a parameter to support this
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1090 r1091  
    15771577        }
    15781578        my $hoption = "-p";
    1579         # Solaris doesn't support -p
    1580         $hoption = "" if ($dtype eq "pkg");
    1581         pb_system("$shcmd \"sudo /sbin/halt $hoption \"; sleep $tm ; echo \'if [ -d /proc/$vmpid ]; then kill -9 $vmpid; fi \' | bash ; sleep 10","VM $v halt (pid $vmpid)");
     1579        my $hpath = "/sbin";
     1580        # Solaris doesn't support -h and has halt elsewhere
     1581        if ($dtype eq "pkg") {
     1582            $hoption = "" ;
     1583            $hpath = "/usr/sbin";
     1584        }
     1585        pb_system("$shcmd \"sudo $hpath/halt $hoption \"; sleep $tm ; echo \'if [ -d /proc/$vmpid ]; then kill -9 $vmpid; fi \' | bash ; sleep 10","VM $v halt (pid $vmpid)");
    15821586    }
    15831587    if (($cmt =~ /^VE/) && ($snapme != 0)) {
Note: See TracChangeset for help on using the changeset viewer.