commit: bd50c2ce076f2a6a5b0f884287a7940cd29cc6db Author: 7e3f <122086774+7e3f <AT> users <DOT> noreply <DOT> github <DOT> com> AuthorDate: Fri Jan 6 10:20:09 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jan 15 01:52:46 2023 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=bd50c2ce
net/macchanger.sh: Update path to macchanger to /usr Proposing changes in diff from bug #889922, net-analyzer/macchanger-1.7.0_p5_p4 to net-analyzer/macchanger-1.7.0_p5_p4-r1 changed softlink and binary location due to #886121. There was a temporary tidy up in net-analyzer/macchanger-1.7.0_p5_p4-r2, but proposing macchanger.sh change to allow netifrc to work with macchanger binary location. Bug: https://bugs.gentoo.org/886121 Bug: https://bugs.gentoo.org/889922 Closes: https://github.com/gentoo/netifrc/pull/42 Signed-off-by: Sam James <sam <AT> gentoo.org> net/macchanger.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/macchanger.sh b/net/macchanger.sh index d87d96e..5b32b80 100644 --- a/net/macchanger.sh +++ b/net/macchanger.sh @@ -64,7 +64,7 @@ macchanger_pre_start() *) opts="${opts} -m ${mac}";; esac - if [ ! -x /sbin/macchanger ]; then + if [ ! -x /usr/bin/macchanger ]; then eerror "For changing MAC addresses, emerge net-analyzer/macchanger" return 1 fi @@ -72,7 +72,7 @@ macchanger_pre_start() for try in 1 2; do # Sometimes the interface needs to be up [ "${try}" -eq 2 ] && _up - output=$(/sbin/macchanger ${opts} "${IFACE}") + output=$(/usr/bin/macchanger ${opts} "${IFACE}") rc=$? [ "${rc}" -eq 0 ] && break done
