From 255e8baa916f9103dc703447474ca38ba118abe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Mon, 2 Jun 2025 19:50:40 +0200 Subject: Replace 'ip netns exec' with direct setns syscall --- test/asset/run/tools/sysinfo.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 test/asset/run/tools/sysinfo.sh (limited to 'test/asset/run/tools/sysinfo.sh') diff --git a/test/asset/run/tools/sysinfo.sh b/test/asset/run/tools/sysinfo.sh new file mode 100755 index 0000000..38591f4 --- /dev/null +++ b/test/asset/run/tools/sysinfo.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +while read cmd; do + case "$cmd" in + network-info) + ip -o addr show | sed -e 's/[0-9]*: \([a-z0-9]*\).*inet6\? \([0-9a-f:.]*\).*/ip \1 \2/' + ;; + esac +done -- cgit v1.2.3