
udev
----

The 'nightview.sh' and 'nightview.rules' are configuration files for udev.
They are designed to run fxloader to load SBIG's firmware of
your camera immediately after connection of the camera to your computer
(or after the camera switch on). The uploading is proceeded by
two phases. During the first phase (it immediately follows the connection), 
the camera create a "passive" device. If the passive device is created, 
it invokes the phase two by uploading of a camera's firmware. 
If the firmware is completely uploaded, the camera's fan and 
its LED are on.

On Debian linux, copy the script 'nightview.rules' to the directory 
/etc/udev/rules.d/ and script 'nightview.sh' to /lib/udev/devices/:

prompt# cp nightview.rules /etc/udev/rules.d/
prompt# cp nightview.sh /lib/udev/devices/

(both destinations can be little bit different on various
linux distributions). The path to SBIG's firmware files is 
hard-coded in nightview.rulez file (/lib/firmware/*.hex) so
the firmware files need to be installed on appropriate place.
The nightview.rules file may be useful to rename on some different
name, for example z90_nightview.rules (but it is important to have
.rules suffix of the new file).

The 'nightview' file is run when the camera is connected. It is
ideal point to run the nightviewd daemon together with additional
settings by runnig of the nightviewd-startup.sh script. The end 
of the file contains possible commands to be used at start-up time. 
For example, the camera connection 'night_power' and the temperature 
regulation setup.

If you have some troubles, uncomment logger's records included
in script /lib/udev/devices/nightview.sh and consult your log files.

The files has been derived from SBIG's init scripts for hotplug.

$Id: README,v 1.6 2008-01-01 20:15:20 hroch Exp $
