Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Preserve brscan config.

  • Loading branch information...
commit 1734f29d8ff0d8aaff6ffeb950970d6d1da6a20f 1 parent e0c770c
Piotr Karbowski authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 media-gfx/brscan3/brscan3-0.2.11.4.ebuild
4 media-gfx/brscan3/brscan3-0.2.11.4.ebuild
View
@@ -26,6 +26,9 @@ src_unpack() {
src_install() {
cp -r usr "${D}" || die
+
+ # Preserve config, brsaneconfig3 will create the file for us.
+ rm "${D}/usr/local/Brother/sane/brsanenetdevice3.cfg"
}
pkg_postinst() {
@@ -34,6 +37,7 @@ pkg_postinst() {
einfo "In order to use scanner you need to add it first with setupSaneScan3."
einfo "Example with DCP-j315w over network:"
einfo " /usr/local/Brother/sane/brsaneconfig3 -a name=Scanner_Home_DCP-j315w model=DCP-J315W ip=192.168.0.24"
+ einfo " chmod 644 /usr/local/Brother/sane/brsanenetdevice3.cfg"
}
Please sign in to comment.
Something went wrong with that request. Please try again.