diff options
author | 2023-01-06 10:20:09 +0000 | |
---|---|---|
committer | 2023-01-15 01:52:46 +0000 | |
commit | bd50c2ce076f2a6a5b0f884287a7940cd29cc6db (patch) | |
tree | 025e39f8cb899f509c76807b039e24eba342d756 | |
parent | net/l2tp.sh: Re-order function declarations and use a consistent brace style (diff) | |
download | netifrc-bd50c2ce076f2a6a5b0f884287a7940cd29cc6db.tar.gz netifrc-bd50c2ce076f2a6a5b0f884287a7940cd29cc6db.tar.bz2 netifrc-bd50c2ce076f2a6a5b0f884287a7940cd29cc6db.zip |
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@gentoo.org>
-rw-r--r-- | net/macchanger.sh | 4 |
1 files 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 |