X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage5%2Fpkg%2Fsane-backends;h=260dc6b801d1458c4c404ebde631d7d5189e4250;hb=49e50904d91d25b0e581997cc0d7adad11754318;hp=695a11d77cc7e06b60bddd6c53e7ea492866a29c;hpb=66f439f5c705ed61c76f7839cec305674661b7e8;p=hvlinux.git diff --git a/stage5/pkg/sane-backends b/stage5/pkg/sane-backends index 695a11d..260dc6b 100644 --- a/stage5/pkg/sane-backends +++ b/stage5/pkg/sane-backends @@ -10,6 +10,9 @@ hvconfig_pre() USE_X_OPTION="no" fi + # Add group for UDEV rules + hv_groupadd scanner + hv_groupadd saned hv_useradd -c saned -d /dev/null -g saned -s /bin/false saned @@ -23,7 +26,7 @@ hvconfig_pre() hvbuild_post() { - install -m 644 -v tools/udev/libsane.rules \ + install -v -m 644 tools/udev/libsane.rules \ /etc/udev/rules.d/65-scanner.rules # Addition to /etc/services (for both the client and server) @@ -36,13 +39,13 @@ hvbuild_post() 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 - + # Addition to xinetd cat > /etc/xinetd.d/saned << "EOF" service sane