Modified package brother-dcp197c-cupswrapper: modified cupswrapper.void script

to adapt it to runit
This commit is contained in:
onekk 2014-08-25 17:43:06 +02:00
parent 9e9f0ef7a6
commit 8bf6b59f21
2 changed files with 6 additions and 5 deletions

View file

@ -18,7 +18,8 @@
# Place, Suite 330, Boston, MA 02111-1307 USA
#
# 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 $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`

View file

@ -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 <carlo.dormeletti@email.it>"
homepage="http://support.brother.com/g/b/index.aspx"
license="GPL-2"