From a8fe799522eccc101a037fe1e6919eac3115e74c Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes Date: Wed, 31 Aug 2022 15:04:53 +0200 Subject: [PATCH] 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. --- script/ethercatctl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/ethercatctl.in b/script/ethercatctl.in index a7d8cd9b..ed11d99b 100755 --- a/script/ethercatctl.in +++ b/script/ethercatctl.in @@ -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