commit: be13bc4e41497599c4150060f83e5753cc28285e Author: Alon Bar-Lev <alon.barlev <AT> gmail <DOT> com> AuthorDate: Wed Feb 5 17:05:26 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> 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 <alon.barlev <AT> gmail.com> Closes: https://github.com/gentoo/netifrc/pull/60 Signed-off-by: Sam James <sam <AT> 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 $? }