Commit b515e164 authored by testing testuser's avatar testing testuser

Fixes Ricoh paths

parent ba59795b
......@@ -5,9 +5,11 @@
# Check if the RICOH driver is present
# Install it it's not found
c4502path='/Library/Printers/PPDs/Contents/Resources/RICOH Aficio MP C4502A.gz'
c4502finisher='/Library/Printers/PPDs/Contents/Resources/RICOH Aficio MP C4502A Finisher.gz'
c4502finisher=${c4502path%.gz}\ Finisher.gz
c4502unzip=${c4502finisher%.gz}
c4503path='/Library/Printers/PPDs/Contents/Resources/RICOH MP C4503.gz'
c4503finisher='/Library/Printers/PPDs/Contents/Resources/RICOH MP C4503 Finisher.gz'
c4503finisher=${c4503path%.gz}\ Finisher.gz
c4503unzip=${c4503finisher%.gz}
if [ ! -f "$c4502path" ] || [ ! -f "$c4503path" ];
then
......@@ -51,9 +53,9 @@ if [ ! -f "$c4502finisher" ];
then
sudo cp -p "$c4502path" "$c4502finisher"
sudo gunzip -v "$c4502finisher"
sudo sed -i '' 's/DefaultFinisher: NotInstalled/DefaultFinisher: FinEUPHRATESFBK/g' "$c4502path" Finisher
sudo sed -i '' 's/DefaultOptionTray: NotInstalled/DefaultOptionTray: 2Cassette/g' "$c4502path" Finisher
sudo gzip -v "$c4502path"\ Finisher
sudo sed -i '' 's/DefaultFinisher: NotInstalled/DefaultFinisher: FinEUPHRATESFBK/g' "$c4502unzip"
sudo sed -i '' 's/DefaultOptionTray: NotInstalled/DefaultOptionTray: 2Cassette/g' "$c4502unzip"
sudo gzip -v "$c4502unzip"
fi
# Verify that we have a special driver with the options
......@@ -63,9 +65,9 @@ if [ ! -f "$c4503finisher" ];
then
sudo cp -p "$c4503path" "$c4503finisher"
sudo gunzip -v "$c4503finisher"
sudo sed -i '' 's/DefaultFinisher: NotInstalled/DefaultFinisher: FinAMURBK/g' "$c4503path"\ Finisher
sudo sed -i '' 's/DefaultOptionTray: NotInstalled/DefaultOptionTray: 2Cassette/g' "$c4503path"\ Finisher
sudo gzip -v "$c4503path"\ Finisher
sudo sed -i '' 's/DefaultFinisher: NotInstalled/DefaultFinisher: FinAMURBK/g' "$c4503unzip"
sudo sed -i '' 's/DefaultOptionTray: NotInstalled/DefaultOptionTray: 2Cassette/g' "$c4503unzip"
sudo gzip -v "$c4503unzip"
fi
# Add the printers to the MAC. Should we loop through a file? Maybe... let's see
......
Markdown is supported
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