Commit b3041859 authored by Jacques Supcik's avatar Jacques Supcik
Browse files

Initial commit

parents
PRINTERS="
MF_A-B30
MF_B-C10
MF_B-C20
MF_B-C40
MF_C-D10
MF_C-D20
MF_C-D40
MF_D30C
MF_E0004
MF_REPRO
MF_Beauregard
"
#!/bin/bash
SERVER="hefrprint"
MODEL="Library/Printers/PPDs/Contents/Resources/KONICAMINOLTAC754e.gz KONICA MINOLTA C754e PS"
PRINTERS="
MF_B-C10
MF_B-C20
MF_C-D10
MF_C-D20
MF_D30C
FollowMe
"
for p in $PRINTERS; do
lpstat -a "${p}_PS" 1>/dev/null 2>/dev/null
if [ $? -eq 0 ]; then
echo "Printer ${p}_PS already installed"
else
echo "Adding ${p}_PS"
sudo lpadmin \
-p "${p}_PS" \
-m "$MODEL" \
-P "/etc/cups/ppd/c754e-3.2.0.ppd" \
-v "smb://${SERVER}/${p}_PS" \
-L "HEFR ${p}" \
-E
fi
done
This diff is collapsed.
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