summaryrefslogtreecommitdiff
path: root/test/asset/run/tools/sysinfo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/asset/run/tools/sysinfo.sh')
-rwxr-xr-xtest/asset/run/tools/sysinfo.sh9
1 files changed, 9 insertions, 0 deletions
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