Changeset 69 for devel/dploy-pxe


Ignore:
Timestamp:
08/05/08 18:22:35 (4 years ago)
Author:
bruno
Message:

change_parms is now returning a string so that it works in the s/e and does the right job for string substitution hopefully

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/dploy-pxe/bin/dploy-pxe-post

    r65 r69  
    4848 
    4949=cut 
     50 
     51=over 4 
     52 
     53change_parms is an internal function which changes the base default dir of the  
     54tftp server with the one we want for dploy. 
     55 
     56=cut 
     57 
     58sub change_parms() { 
     59     
     60    my ($s1, $s2, $params) = @_; 
     61    my $ret = "\n"; 
     62 
     63    $ret .= "### Modified by dploy.org\n"; 
     64    $ret .= "### original: server_args$s1=$s2$params\n"; 
     65    my $dir = dirname($pathpxe->{$proj}); 
     66    my $nparams = $params; 
     67    $nparams =~ s/-s\s+\S+/-s $dir/; 
     68    $ret .= "server_args$s1=$s2$nparams\n"; 
     69    print "Changing tftpd args from $parms to $nparams\n"; 
     70    return($ret); 
     71} 
     72 
    5073 
    5174my $proj = "PBPROJ"; 
     
    110133# PBHTTPDCONFDIR 
    111134# Prepare Apache conf for kickstart support for LinuxCOE 
    112  
    113 sub change_parms() { 
    114      
    115     my ($s1, $s2, $params) = @_; 
    116     print "# Modified by dploy.org\n"; 
    117     print "# server_args$s1=$s2$params\n"; 
    118     my $dir = dirname($pathpxe->{$proj}); 
    119     $params =~ s/-s\s+\S+\s+/-s $dir/; 
    120     print "server_args$s1=$s2$params\n"; 
    121 } 
Note: See TracChangeset for help on using the changeset viewer.