[sane-devel] Shotcut to detect IRQ

Stephen Liu satimis at icare.com.hk
Mon Mar 3 09:43:55 GMT 2003


Hi Theodore,

Thanks for your response.

Theodore Kilgore wrote:
 >
 > It is relevant here whether one is using devfs or not. If one is using
 > devfs, then the devices /dev/sg* do not exist, unless and until the sg
 > module gets loaded. In any event, if these files are created when the
 > machine gets booted up (presumes that the module gets loaded and the
 > scanner is attached to the computer too. Then it is possible (on my
 > Slackware system) to edit the file
 >
 > /etc/rc.d/rc.local
 > which is the last thing run during the boot sequence, and put in a 
 > command which says something like
 > chmod 666 /dev/sg1

$ cat /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local



as ROOT added following line to this file

chmod 666 /dev/sg1


Rebooted the PC then it worked as ROOT only but not as USER

as USER
# ls -l /dev/sg1
crw-------    1 satimis  root      21,   1 Apr 11  2002 /dev/sg1

Still have to issue

# chmod -c 0666 /dev/sg1

to make it works


B.Regards
Stephen

- snip -



More information about the sane-devel mailing list