diff '--color=auto' -ur a/opt/brother/Printers/dcp195c/cupswrapper/cupswrapperdcp195c b/opt/brother/Printers/dcp195c/cupswrapper/cupswrapperdcp195c
--- a/opt/brother/Printers/dcp195c/cupswrapper/cupswrapperdcp195c	2025-11-04 18:19:42.656444166 +0100
+++ b/opt/brother/Printers/dcp195c/cupswrapper/cupswrapperdcp195c	2025-11-04 18:40:01.183776656 +0100
@@ -23,8 +23,9 @@
 device_name=`echo $printer_name | eval sed -e 's/MFC/MFC-/' -e 's/DCP/DCP-/' -e 's/FAX/FAX-/'`
 pcfilename=`echo $printer_name | tr -d '[A-Z]'`
 device_model="Printers"
-tmp_filter=/var/tmp/brlpdwrapper${printer_model}
+tmp_filter=${WORKDIR}/var/tmp/brlpdwrapper${printer_model}
 
+if [ "$1" != '-i' ]; then
 if [ -d "/usr/share/cups/model" ]; then
   mkdir -p /usr/share/cups/model/Brother
 else
@@ -38,7 +39,6 @@
 fi
 
 
-
 if [ "$1" = '-e' ]; then
   lpadmin -x ${printer_name}
   rm -f /usr/share/cups/model/Brother/brother_${printer_model}_printer_en.ppd
@@ -105,7 +105,7 @@
 	chmod 644 /usr/share/ppd/Brother/brother_${printer_model}_printer_en.ppd
 fi
 fi
-
+fi
 #
 #	create temporary CUPS Filter
 #
@@ -257,8 +257,8 @@
 #
 #	check /usr/lib/cups/filter
 #
-if [ -d /usr/lib/cups/filter ]; then
-	brotherlpdwrapper=/usr/lib/cups/filter/brlpdwrapper${printer_model}
+if [ -d ${WORKDIR}/usr/lib/cups/filter ]; then
+	brotherlpdwrapper=${WORKDIR}/usr/lib/cups/filter/brlpdwrapper${printer_model}
 	rm -f  $brotherlpdwrapper
 	cp $tmp_filter	$brotherlpdwrapper
 fi
@@ -266,8 +266,8 @@
 #
 #	check /usr/lib64/cups/filter
 #
-if [ -e /usr/lib64/cups/filter ]; then
-	brotherlpdwrapper64=/usr/lib64/cups/filter/brlpdwrapper${printer_model}
+if [ -e ${WORKDIR}/usr/lib64/cups/filter ]; then
+	brotherlpdwrapper64=${WORKDIR}/usr/lib64/cups/filter/brlpdwrapper${printer_model}
 	rm -f  $brotherlpdwrapper64
 	cp $tmp_filter	$brotherlpdwrapper64
 fi
@@ -275,10 +275,11 @@
 #
 #	remove temporary script file
 #
-rm -f  $tmp_filter
 
-chmod a+w /opt/brother/${device_model}/${printer_model}/inf/br${printer_model}rc
-chmod a+w /opt/brother/${device_model}/${printer_model}/inf
+chmod a+w ${WORKDIR}/opt/brother/${device_model}/${printer_model}/inf/br${printer_model}rc
+chmod a+w ${WORKDIR}/opt/brother/${device_model}/${printer_model}/inf
+if [ "$1" != '-i' ]; then 
+rm -f  $tmp_filter
 if [ -e /etc/init.d/lpd ]; then
    /etc/init.d/lpd stop
 fi
@@ -311,6 +312,6 @@
 fi
 #lpadmin -p ${printer_name} -E -v $port -m brother_${printer_model}_printer_en.ppd
 lpadmin -p ${printer_name} -E -v $port -P $ppd_file_name
-
+fi
 exit 0
 
