sane-backends/hal-usb-scanner-add
Nils Philippsen eec8f5dd31 cvs snapshot 20080206 handle access control through hal/PolicyKit instead
of udev (#405211) drop obsolete badcode, logical_vs_binary,
    epson-cx5000, multilib, usb_reset, udev-symlink, udev-098 patches
    update pkgconfig patch
2008-02-07 10:11:41 +00:00

7 lines
208 B
Bash
Executable File

#!/bin/bash
# Disable USB autosuspend for scanners
if [ -n "${HAL_PROP_LINUX_SYSFS_PATH}" -a -e "${HAL_PROP_LINUX_SYSFS_PATH}/power/level" ]; then
echo on > "${HAL_PROP_LINUX_SYSFS_PATH}/power/level"
fi