summaryrefslogtreecommitdiff
path: root/debian/sane-utils.postinst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-10-06 14:02:04 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-10-06 14:02:04 +0200
commit82a152928f820a6aeb02ef8cd9ebfa7d3bcaae48 (patch)
tree0dd1472607450fac076ef4986c654c537153a1e8 /debian/sane-utils.postinst
parent6e9c41a892ed0e0da326e0278b3221ce3f5713b8 (diff)
parentba8d09abe681600aad991f4a75e904615b7ed29f (diff)
Merge tag 'upstream/1.0.24'debian/1.0.24-1.2
Upstream version 1.0.24
Diffstat (limited to 'debian/sane-utils.postinst')
-rw-r--r--debian/sane-utils.postinst54
1 files changed, 0 insertions, 54 deletions
diff --git a/debian/sane-utils.postinst b/debian/sane-utils.postinst
deleted file mode 100644
index 391bb05..0000000
--- a/debian/sane-utils.postinst
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-set -e
-. /usr/share/debconf/confmodule
-
-SANED_DEFAULT=/etc/default/saned
-
-saned_eh () {
- echo "saned couldn't start; check your inetd configuration and README.Debian"
-}
-
-if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ]; then
- db_get sane-utils/saned_run
- RUN_SANED="$RET"
-
- db_get sane-utils/saned_scanner_group
- SANED_IN_SCANNER="$RET"
-
- # Add saned service, disabled by default
- if [ -x /usr/sbin/update-inetd ]; then
- update-inetd --add "#<off># sane-port\tstream\ttcp\tnowait\tsaned:saned\t/usr/sbin/saned saned"
- fi
-
- # Stop debconf; output to stdout after this point. update-inetd needs debconf.
- db_stop
-
- # Create saned user/group if they do not exist
- if ! getent passwd | grep -q "^saned:"; then
- echo "Adding saned group and user..."
- adduser --quiet --system --no-create-home --group saned || true
- fi
-
- if [ "$SANED_IN_SCANNER" = "true" ]; then
- adduser --quiet saned scanner
- else
- if id saned | grep -q "groups=.*\(scanner\)"; then
- deluser --quiet saned scanner
- fi
- fi
-
- if [ -e $SANED_DEFAULT ]; then
- if [ "$RUN_SANED" = "true" ]; then
- RUN_SANED=yes
- else
- RUN_SANED=no
- fi
-
- sed -e "s/^ *RUN=.*/RUN=$RUN_SANED/" < $SANED_DEFAULT > $SANED_DEFAULT.tmp
- mv -f $SANED_DEFAULT.tmp $SANED_DEFAULT
- fi
-fi
-
-
-#DEBHELPER#
-