Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
PK ?Z[cý?2 2 upgrade-from-0.5.x.plnu W+A„¶ #!/usr/bin/perl -w
use strict;
my %doneifaces = ();
my @orig = (); # original interfaces file
my $line;
while($line = ) {
if ($line =~ m/^\s*#/) {
push @orig, $line;
next;
}
my $tmp;
while ($line =~ m/\\\n$/ and $tmp = <>) {
$line .= $tmp;
}
push @orig, $line;
}
my $out = "";
my $block = "";
my $auto = "";
for my $x (@orig) {
my $y = $x;
$y =~ s/^\s*//s;
$y =~ s/\\\n//sg;
$y =~ s/\s*$//s;
if ($y =~ m/^scheme\b/) {
print STDERR "Schemes cannot be automatically converted\n";
exit(1);
}
if ($y =~ m/^auto\b/) {
print STDERR "File seems to already be converted\n";
exit(1);
}
if ($y =~ m/^iface\b/s) {
$out .= $auto . $block;
$block = $x;
if ($y =~ m/^iface\s+(\S+)/s && ! $doneifaces{$1}++ ) {
$auto = "# automatically added when upgrading\n";
$auto .= "auto $1\n";
} else {
$auto = "";
}
next;
}
if ($y =~ m/^noauto/) {
$auto = "";
my $spaces = $x;
$spaces =~ s/\S.*$//s;
$block .= $spaces . "# noauto (removed on upgrade)\n";
next;
}
$block .= $x;
}
$out .= $auto . $block;
print $out;
PK ?Z[cý?2 2 upgrade-from-0.5.x.plnu W+A„¶ PK U w