From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8A1C515800F for ; Sun, 15 Jan 2023 01:53:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A81A9E07E2; Sun, 15 Jan 2023 01:53:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8DE08E07E2 for ; Sun, 15 Jan 2023 01:53:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C2469340F05 for ; Sun, 15 Jan 2023 01:53:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8096D7DE for ; Sun, 15 Jan 2023 01:53:52 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1673747566.bd50c2ce076f2a6a5b0f884287a7940cd29cc6db.sam@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: net/ X-VCS-Repository: proj/netifrc X-VCS-Files: net/macchanger.sh X-VCS-Directories: net/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: bd50c2ce076f2a6a5b0f884287a7940cd29cc6db X-VCS-Branch: master Date: Sun, 15 Jan 2023 01:53:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a788cc03-be06-4e77-ae4f-f5fe026dd809 X-Archives-Hash: a67e681b8aadc1f2179bdd93ec3fd1ab commit: bd50c2ce076f2a6a5b0f884287a7940cd29cc6db Author: 7e3f <122086774+7e3f users noreply github com> AuthorDate: Fri Jan 6 10:20:09 2023 +0000 Commit: Sam James gentoo 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 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