if [ -z "${SANE_SERVER}" ]; then
# If 'SANE_SERVER' is not defined, then we automatically configure for
# the SANE Network Daemon.
if [ -z "${SANE_SERVER}" ]; then
# If 'SANE_SERVER' is not defined, then we automatically configure for
# the SANE Network Daemon.
# Adding entry to '/etc/sane.d/dll.conf'
#######echo "${SANE_DRIVER}" >> /etc/sane.d/dll.conf
# Creating '/etc/sane.d/saned.conf'
echo "${LAN_NETWORK_MASK}" > /etc/sane.d/saned.conf
# Adding entry to '/etc/sane.d/dll.conf'
#######echo "${SANE_DRIVER}" >> /etc/sane.d/dll.conf
# Creating '/etc/sane.d/saned.conf'
echo "${LAN_NETWORK_MASK}" > /etc/sane.d/saned.conf
-
- # Addition to /etc/inetd.conf
- string_add "sane stream tcp nowait saned /usr/sbin/tcpd saned" \
- /etc/inetd.conf
+
+ # Addition to xinetd
+ cat > /etc/xinetd.d/saned << "EOF"
+service sane
+{
+ disable = no
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = saned
+ server = /usr/sbin/saned
+ log_type = SYSLOG local4 info
+}
+EOF
else
# If 'SANE_SERVER' is defined, then we must specify the address of the
# remote SANE server to use.
else
# If 'SANE_SERVER' is defined, then we must specify the address of the
# remote SANE server to use.