Commit Graph

15 Commits

Author SHA1 Message Date
Rasmus Villemoes a8fe799522 ethercatctl: fix hard-coded path to ip utility
- The unmodified upstream iproute2 package installs the ip utility in
  /sbin. That is also where it thus ends up with for example Yocto
  builds.

- Debian/Ubuntu installs it in /bin (and I assume that's how this came
  to be), but their packaging logic provides a symlink /sbin/ip ->
  /bin/ip .

- ArchLinux seems to install it in both places (as hardlinks).

- CentOS only has /sbin/ip.

- Fedora only has /sbin/ip.

So /sbin/ip should work everywhere, whereas /bin/ip does not.
2022-08-31 15:18:42 +02:00
Florian Pose 3ee5e50a48 Merge branch 'init.d' into 'master'
Update init.d support

See merge request etherlab.org/ethercat!41
2021-12-13 10:00:16 +00:00
Nicola Fontana 9ee6693fb3 Update init.d support 2021-12-13 10:00:16 +00:00
Nicola Fontana 0ae450d7c7 Add UPDOWN_INTERFACES option to ethercat.conf 2021-12-13 09:56:32 +00:00
Florian Pose 5bd401490f Avoid double quotes in arithmetic expansion. 2021-09-02 11:48:53 +02:00
Florian Pose 0a0117d4b6 Broke long lines. 2021-08-24 17:49:32 +02:00
Florian Pose e480ffbe8b Removed tabs. 2021-08-24 17:49:22 +02:00
Matthias Schoepfer e78bf31962 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-08-24 17:49:09 +02:00
Nicola Fontana fd772c310c 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-08-24 17:39:19 +02:00
Florian Pose 9384cc7010 Fixed problems with shell quotes introduced in 66329e1f. 2021-08-24 17:39:06 +02:00
Matthias Schoepfer 1bb6d56fa7 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-08-24 17:37:53 +02:00
Florian Pose 93da3dc16f Respect bashisms. 2021-08-24 16:30:27 +02:00
Florian Pose 99418519bd Reverted default branch to stable-1.5. 2014-11-03 15:20:05 +01:00
Florian Pose 28d4117b19 Fixed appending to LOADED_MODULES variable. 2012-01-04 18:05:38 +01:00
Florian Pose 6b45d329ce Added first systemd support. 2012-01-04 18:00:36 +01:00