From e10671d310898c68f0f10066e3e704c7a81b31c9 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Tue, 17 Jun 2008 13:45:30 +0000 Subject: [PATCH] Updated install script; udev rule. --- INSTALL | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/INSTALL b/INSTALL index afcf5a22..109f5f8c 100644 --- a/INSTALL +++ b/INSTALL @@ -17,6 +17,7 @@ documentation available from http://etherlab.org/en/ethercat. For the impatient: The procedure mainly consists of calling $ ./configure +$ make $ make modules (and as root) @@ -24,7 +25,23 @@ $ make modules # make install # make modules_install -...and copying the init script and sysconfig file from $PREFIX/etc to the -appropriate locations and customizing the sysconfig file. +...and linking the init script and copying the sysconfig file from $PREFIX/etc +to the appropriate locations and customizing the sysconfig file. + +# ln -s ${PREFIX}/etc/init.d/ethercat /etc/init.d/ethercat +# cp ${PREFIX}/etc/sysconfig/ethercat /etc/sysconfig/ethercat +# vi /etc/sysconfig/ethercat + +The EtherCAT character device will be created with mode 0660 and group root by +default. If you want to give normal users reading access, create a udev rule +like this: + +# echo KERNEL==\"EtherCAT[0-9]*\", MODE=\"0664\" > /etc/udev/rules.d/99-EtherCAT.rules + +Now you can start the EtherCAT master: + +# /etc/init.d/ethercat start + +Have fun! -------------------------------------------------------------------------------