Merge pull request #518 from onekk/master

Modified package brother-dcp197c-cupswrapper
This commit is contained in:
Juan RP 2014-08-25 17:55:52 +02:00
commit 9d8eaee613
2 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,8 @@
# Place, Suite 330, Boston, MA 02111-1307 USA # Place, Suite 330, Boston, MA 02111-1307 USA
# #
# modified for voidlinux by Carlo Dormeletti carlo.dormeletti <at> email.it # modified for voidlinux by Carlo Dormeletti carlo.dormeletti <at> email.it
# modify date 2014/04/26 # 2014/04/26 -- first version
# 2014/08/25 -- adapted to runit
# #
@ -52,14 +53,14 @@ if [ "$1" = '-e' ]; then
rm -f $ppd_file_name rm -f $ppd_file_name
rm -f $brotherlpdwrapper rm -f $brotherlpdwrapper
systemctl restart cups sv restart cups
exit 0 exit 0
fi fi
if [ "$1" = "-r" ]; then if [ "$1" = "-r" ]; then
lpadmin -x ${cups_printer_name} lpadmin -x ${cups_printer_name}
systemctl restart cups sv restart cups
exit 0 exit 0
fi fi
@ -258,7 +259,7 @@ chmod a+w /opt/brother/${device_model}/${printer_model}/inf
sleep 2s sleep 2s
systemctl restart cups sv restart cups
port2=`lpinfo -v | grep -i 'usb://Brother/${device_name}' | head -1` port2=`lpinfo -v | grep -i 'usb://Brother/${device_name}' | head -1`

View File

@ -1,7 +1,7 @@
# Template file for 'brother-dcp197c-cupswrapper' # Template file for 'brother-dcp197c-cupswrapper'
pkgname=brother-dcp197c-cupswrapper pkgname=brother-dcp197c-cupswrapper
version=1.1.3 version=1.1.3
revision=5 revision=6
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>" maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
homepage="http://support.brother.com/g/b/index.aspx" homepage="http://support.brother.com/g/b/index.aspx"
license="GPL-2" license="GPL-2"