IT WORKS!
Foomatic did it! :)
This is the package that was missing:
foomatic-db-compressed-ppds
And this is the function that added the printer! (Both versions work!)
Man, it feels like we just summited K2!
Thanks a lot!
test-foomatic () { local -a devices devices=("${(@f)$(sudo lpinfo -v | \grep LaserJet | cut -d ' ' -f 2)}")
local foomatic='foo2zjs:0/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd' local name=laser-foomatic
local number=1 for d in $devices; do sudo lpadmin \ -p ${name}-$number \ -E \ -v $d \ -m $foomatic number=$(( number + 1 )) done }
Source:
formatting link
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 55 Blogomatic articles -