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.
This commit is contained in:
Rasmus Villemoes 2022-08-31 15:04:53 +02:00
parent fa890a8b61
commit a8fe799522
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ LSMOD=/sbin/lsmod
MODPROBE=/sbin/modprobe
RMMOD=/sbin/rmmod
MODINFO=/sbin/modinfo
IP=/bin/ip
IP=/sbin/ip
ETHERCAT=@bindir@/ethercat