From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id 88F1A1584F2 for ; Tue, 18 Mar 2025 21:50:31 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 72A563431D3 for ; Tue, 18 Mar 2025 21:50:31 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id A60121103C7; Tue, 18 Mar 2025 21:50:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 966E311037F for ; Tue, 18 Mar 2025 21:50:27 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4FBB4343072 for ; Tue, 18 Mar 2025 21:50:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD8422834 for ; Tue, 18 Mar 2025 21:50:25 +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: <1742334592.be13bc4e41497599c4150060f83e5753cc28285e.sam@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: net/ X-VCS-Repository: proj/netifrc X-VCS-Files: net/ip6token.sh X-VCS-Directories: net/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: be13bc4e41497599c4150060f83e5753cc28285e X-VCS-Branch: master Date: Tue, 18 Mar 2025 21:50:25 +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: c5b572ff-4d34-4091-a49f-1be47bbe08e1 X-Archives-Hash: 2500c78307d77a7623877c60fbd6ac5d commit: be13bc4e41497599c4150060f83e5753cc28285e Author: Alon Bar-Lev gmail com> AuthorDate: Wed Feb 5 17:05:26 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue Mar 18 21:49:52 2025 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=be13bc4e net: ip6token: remote token only if added do not attempt to remote a token if not added (exists in configuration). this also provide support for busybox which lacks the "ip token" applet. Signed-off-by: Alon Bar-Lev gmail.com> Closes: https://github.com/gentoo/netifrc/pull/60 Signed-off-by: Sam James gentoo.org> net/ip6token.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/ip6token.sh b/net/ip6token.sh index 8b0ca31..1eff46d 100644 --- a/net/ip6token.sh +++ b/net/ip6token.sh @@ -20,6 +20,10 @@ ip6token_pre_start() ip6token_post_stop() { + local tconfig + eval tconfig=\$ip6token_${IFVAR} + + [ -z "${tconfig}" ] && return 0 ip token del dev "${IFACE}" return $? }