Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
unix
FI printers over Samba on Linux
Commits
bfbf64f4
Commit
bfbf64f4
authored
Jan 20, 2021
by
Martin Klimes (k11m1)
Browse files
fix TA4505ci filters
parent
020a05c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
install.pl
View file @
bfbf64f4
...
...
@@ -7,6 +7,7 @@ use Carp qw/croak/;
use
Cwd
qw(cwd)
;
use
File::
Path
;
use
File::
Copy
;
use
File::
Basename
;
########
# DATA #
...
...
@@ -81,10 +82,13 @@ my $printers = {
my
$models
=
{
'
TA5007ci
'
=>
{
'
filters
'
=>
[
'
kyofilter_pre_E
',
'
kyofilter_E
',
],
'
filters
'
=>
[
'
/usr/lib/cups/filter/kyofilter_pre_E
',
'
/usr/lib/cups/filter/kyofilter_E
',
],
},
'
TA4505ci
'
=>
{
'
filters
'
=>
[
'
kyofilter_B
',
],
'
filters
'
=>
[
'
/usr/libexec/cups/filter/
kyofilter_B
',
],
'
options
'
=>
[
'
Option19=One
',
'
Option21=True
',
'
Option17=DF730
',
],
},
'
hplj600
'
=>
{
...
...
@@ -159,9 +163,11 @@ sub install_printer {
}
sub
copy_filter
{
my
(
$
filter
)
=
@_
;
my
(
$
path
)
=
@_
;
my
$destination
=
"
/usr/lib/cups/filter/
";
my
(
$filter
,
$destination
,
$suffix
)
=
fileparse
(
$path
);
# my $destination = "/usr/lib/cups/filter/";
if
(
!-
d
$destination
)
{
my
$dirs
=
eval
{
mkpath
(
$destination
)
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment