From 8bf6b59f2132f4e94b6b02c03b7f8e5afd6364aa Mon Sep 17 00:00:00 2001 From: onekk Date: Mon, 25 Aug 2014 17:43:06 +0200 Subject: [PATCH] Modified package brother-dcp197c-cupswrapper: modified cupswrapper.void script to adapt it to runit --- .../brother-dcp197c-cupswrapper/files/cupswrapper.void | 9 +++++---- srcpkgs/brother-dcp197c-cupswrapper/template | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/srcpkgs/brother-dcp197c-cupswrapper/files/cupswrapper.void b/srcpkgs/brother-dcp197c-cupswrapper/files/cupswrapper.void index 25f040060e8..c4fe691674e 100755 --- a/srcpkgs/brother-dcp197c-cupswrapper/files/cupswrapper.void +++ b/srcpkgs/brother-dcp197c-cupswrapper/files/cupswrapper.void @@ -18,7 +18,8 @@ # Place, Suite 330, Boston, MA 02111-1307 USA # # modified for voidlinux by Carlo Dormeletti carlo.dormeletti 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 $brotherlpdwrapper - systemctl restart cups + sv restart cups exit 0 fi if [ "$1" = "-r" ]; then lpadmin -x ${cups_printer_name} - systemctl restart cups + sv restart cups exit 0 fi @@ -258,7 +259,7 @@ chmod a+w /opt/brother/${device_model}/${printer_model}/inf sleep 2s -systemctl restart cups +sv restart cups port2=`lpinfo -v | grep -i 'usb://Brother/${device_name}' | head -1` diff --git a/srcpkgs/brother-dcp197c-cupswrapper/template b/srcpkgs/brother-dcp197c-cupswrapper/template index 11b9a224ea3..38a3ea63339 100644 --- a/srcpkgs/brother-dcp197c-cupswrapper/template +++ b/srcpkgs/brother-dcp197c-cupswrapper/template @@ -1,7 +1,7 @@ # Template file for 'brother-dcp197c-cupswrapper' pkgname=brother-dcp197c-cupswrapper version=1.1.3 -revision=5 +revision=6 maintainer="Carlo Dormeletti " homepage="http://support.brother.com/g/b/index.aspx" license="GPL-2"