Commit Graph

16 Commits

Author SHA1 Message Date
Bjarne von Horn 9c5e477fa8 Avoid race condition when starting master
By first removing the non-native driver module and then
checking for success.
It's better to ask for forgiveness than to ask for permission.
2023-11-22 16:18:01 +01:00
Bjarne von Horn 55e77f964d Add a nice error message to ethercatctl in case of missing config. 2023-11-07 11:46:36 +01:00
Florian Pose 4ac30c966e Avoid double quotes in arithmetic expansion.
(cherry picked from commit 5bd401490f)
2021-09-02 15:12:46 +00:00
Florian Pose d06444d53e Broke long lines. 2021-08-24 13:20:54 +02:00
Florian Pose 72ae0c090c Removed tabs. 2021-08-24 12:36:29 +02:00
Matthias Schoepfer 162e5ef9eb ethercatctl: allow to use the network device name instead of mac address
In the /etc/ethercat.conf file, the MASTERX_DEVICE string is given as a
mac address or a wildcard. When we want to deploy the (same) software (image)
to a bunch of different hardware, and these computers do have more than one
interface that matches the driver, we need a way to define the device by
network interface name. This allows to also define the network device by name
(e.g. eth0, eno1, ...)

Signed-off-by: Matthias Schoepfer <m.schoepfer@rethinkrobotics.com>
2021-07-27 10:44:26 +02:00
Florian Pose b68abbfb04 Merge branch 'dehardcode-paths' into 'stable-1.5'
Do not hardcode paths in scripts

See merge request etherlab.org/ethercat!28
2021-07-22 13:27:06 +00:00
Florian Pose 83468705b2 Fixed problems with shell quotes introduced in 66329e1f. 2021-07-22 15:06:17 +02:00
Nicola Fontana 4c8ffd9a57 Do not hardcode paths in scripts
Try to reuse the configured paths as much as possible. Unfortunately, to
be able to fully expand some variable (e.g. `bindir`), these files must
be expanded by make, not by configure. This adds some complexity:

https://www.gnu.org/software/automake/manual/html_node/Scripts.html
2021-07-22 14:40:03 +02:00
Matthias Schoepfer 66329e1fe1 script: run shellcheck on bash / sh scripts
Mostly fixed omitted double quotes, some conversion of $(eval ..) to $(()).
Left the echo -n untouched, shellcheck complains about not being standard in
/bin/sh. Also, seems like some code is dublicated in ethercatctl.in and
init.d/ethercat.in.

Signed-off-by: Matthias Schoepfer <m.schoepfer@rethinkrobotics.com>
2021-07-05 14:51:16 +02:00
Florian Pose 1016e8a75e Respect bashisms. 2017-10-12 15:01:43 +02:00
Florian Pose d790e03dd9 merge. 2014-10-27 14:15:55 +01:00
Florian Pose ef47dbbc44 Use absolute path fpr ldmod; thanks to S. Blanchet. 2014-07-08 11:18:02 +02:00
Florian Pose 3e3d59d96e Avoid replacing ccat driver. 2014-04-25 17:32:26 +02:00
Florian Pose c4eac658af Fixed appending to LOADED_MODULES variable. 2012-01-04 18:05:38 +01:00
Florian Pose 04b652a7fb Added first systemd support. 2012-01-04 18:00:36 +01:00