commit: 90482eddc3e792809bb220320672816000f727e3
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 18 11:23:12 2021 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Jan 18 12:32:31 2021 +0000
URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=90482edd
net/l2tp.sh: dash doesn't know "&>/dev/null" redirect
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
net/l2tp.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/l2tp.sh b/net/l2tp.sh
index 9644e32..82649b9 100644
--- a/net/l2tp.sh
+++ b/net/l2tp.sh
@@ -34,8 +34,7 @@ _l2tp_eval_props() {
_is_l2tp() {
# Check for L2TP support in kernel
- ip l2tp show session &>/dev/null
- [ $? -ne 0 ] && return 1
+ ip l2tp show session 2>/dev/null 1>/dev/null || return 1
eval "$(ip l2tp show session | \
awk "match(\$0, /^Session ([0-9]+) in tunnel ([0-9]+)\$/, ret)
{sid=ret[1]; tid=ret[2]}