sane service: support remote scanners

This commit is contained in:
Nikolay Amiantov
2016-11-20 19:09:03 +03:00
parent 65f9341370
commit 382047a135
2 changed files with 20 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ let installSanePath = path: ''
if [ -e "${path}/etc/sane.d" ]; then
find "${path}/etc/sane.d" -maxdepth 1 -not -type d | while read conf; do
name="$(basename $conf)"
if [ "$name" = "dll.conf" ] || [ "$name" = "saned.conf" ]; then
if [ "$name" = "dll.conf" ] || [ "$name" = "saned.conf" ] || [ "$name" = "net.conf" ]; then
cat "$conf" >> "$out/etc/sane.d/$name"
else
ln -s "$conf" "$out/etc/sane.d/$name"