summaryrefslogtreecommitdiff
path: root/debian/sane-utils.postinst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-10-02 20:31:36 +0200
committerJörg Frings-Fürst <debian@jff.email>2022-10-02 20:31:36 +0200
commit7d8aac1f3634dc58785bec7acf097dd6bac8c394 (patch)
treef2ce60700d282dfef7926b81ea18cf83664da9cc /debian/sane-utils.postinst
parentea71790a549e64f3970053d99c38e51924063de3 (diff)
parent3f9fb219f6c7a0033938959a9ae1f0f3f4831d7c (diff)
Merge branch 'release/debian/1.1.1-6'debian/1.1.1-6
Diffstat (limited to 'debian/sane-utils.postinst')
-rw-r--r--debian/sane-utils.postinst11
1 files changed, 6 insertions, 5 deletions
diff --git a/debian/sane-utils.postinst b/debian/sane-utils.postinst
index b026a6e..b334d59 100644
--- a/debian/sane-utils.postinst
+++ b/debian/sane-utils.postinst
@@ -31,11 +31,12 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
db_get sane-utils/saned_scanner_group
SANED_IN_SCANNER="$RET"
- # Add saned service, disabled by default
- pathfind update-inetd
- if [ $? = 0 ]; then
- update-inetd --add "#<off># sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned"
- fi
+ if [ -f /etc/inetd.conf ]; then
+ # Add saned service, disabled by default
+ if pathfind update-inetd ; then
+ update-inetd --add "#<off># sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned"
+ fi
+ fi
# Stop debconf; output to stdout after this point. update-inetd needs debconf.
db_stop