- 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.
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>
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
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>