Commit 15194af3 authored by Martin Klimeš's avatar Martin Klimeš Committed by Martin Klimes (k11m1)
Browse files

rename PPDs

parent a76e2e60
......@@ -25,7 +25,7 @@ my @files = glob('/etc/cups/ppd/*fi.muni.ppd');
for my $item (@files) {
print "current $item\n";
$item =~ s/\/etc\/cups\/ppd\///;
$item =~ s/\.fi\.muni\.ppd//;
$item =~ s/\.fi\.muni\.cz\.ppd//;
}
for my $printer (@files) {
......
......@@ -161,7 +161,7 @@ sub install_printer {
my $url = get_url($printer_name);
my $command = qq(lpadmin \\
-p "${printer_name}.fi.muni" \\
-p "${printer_name}.fi.muni.cz" \\
-D "${printer_name} (FI MUNI)" \\
-L "$printers->{$printer_name}->{'location'}" \\
-E \\
......@@ -189,7 +189,7 @@ sub update_ppd {
my ($printer_name) = @_;
my $command = qq(lpadmin \\
-p "${printer_name}.fi.muni" \\
-p "${printer_name}.fi.muni.cz" \\
-P "ppds/${printer_name}.ppd" );
system($command);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment