Hi wuybit, don't worry. /etc/sysconfig is only for etherlab. Yes, just create the directory /etc/sysconfig first, and then copy the config file into it.
You're not using a SUSE Linux, so 'insserv ethercat' won't work.It is a Debian Linux. You may follow my command list $ sudo ln -s /opt/etherlab/etc/init.d/ethercat /etc/init.d/ethercat $ sudo cp -r /opt/etherlab/etc/sysconfig/ /etc/ $ sudo ln -s /opt/etherlab/bin/ethercat /usr/local/bin/ethercat $ sudo bash -c "echo KERNEL==\"EtherCAT[0-9]*\", MODE=\"0664\" > /etc/udev/rules.d/99-EtherCAT.rules" And don't forget to edit the config file /etc/sysconfig/ethercat to specify the correct MAC address and the driver module. After that, you can try to start the EtherCAT master: $ sudo /etc/init.d/ethercat start And if you want the ethercat service starts automatically after the system boots: $ sudo update-rc.d -f ethercat defaults 90 Regards, Jun On 30 October 2014 10:10, wuybit <[email protected]> wrote: > Hi Jun, > Thank you for your help > After do $ apt-get install linux-headers-2.6.32-5-686, it's OK. > > But when I do 'cp etc/sysconfig/ethercat /etc/sysconfig/', > it comes out that "cp: cannot creat creat rugular file ' > /etc/sysconfig/ethercat': no such file file or directory. I also see > directory /etc/, there is no sysconfig (Debian 6.04) > How should I do? Should I make a folder named sysconfig, then do copy or > else? > > Also, executing 'insserv ethercat' command wasn't OK. > > I almost do not have linux foundation knowledge. > > 2014-10-30 > ------------------------------ > wuybit > ------------------------------ > *发件人:*Jun Yuan <[email protected]> > *发送时间:*2014-10-30 16:39 > *主题:*Re: Re: [etherlab-users] ./configure error > *收件人:*"wuybit"<[email protected]> > *抄送:*"[email protected]"<[email protected]> > > Hi wuybit, > > it seems that linux headers are missing. Try to install the missing > headers with > > $ apt-get install linux-headers-2.6.32-5-686 > > and do ./configure again. > > Regards, > Jun >
_______________________________________________ etherlab-users mailing list [email protected] http://lists.etherlab.org/mailman/listinfo/etherlab-users
