summaryrefslogtreecommitdiffstats
path: root/usr/local/bin/inet6.sh
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-05-24 00:12:55 +0200
committerAnton Luka Šijanec <anton@sijanec.eu>2023-05-24 00:12:55 +0200
commitf09879b85dd2dffe659e00f8d19c04507f89d690 (patch)
tree4dd790e7b71e1cc218841893044d86e280b26b22 /usr/local/bin/inet6.sh
parentdino web call support, i3config xbacklight (diff)
downloadn-f09879b85dd2dffe659e00f8d19c04507f89d690.tar
n-f09879b85dd2dffe659e00f8d19c04507f89d690.tar.gz
n-f09879b85dd2dffe659e00f8d19c04507f89d690.tar.bz2
n-f09879b85dd2dffe659e00f8d19c04507f89d690.tar.lz
n-f09879b85dd2dffe659e00f8d19c04507f89d690.tar.xz
n-f09879b85dd2dffe659e00f8d19c04507f89d690.tar.zst
n-f09879b85dd2dffe659e00f8d19c04507f89d690.zip
Diffstat (limited to 'usr/local/bin/inet6.sh')
-rwxr-xr-xusr/local/bin/inet6.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/bin/inet6.sh b/usr/local/bin/inet6.sh
new file mode 100755
index 0000000..94b761a
--- /dev/null
+++ b/usr/local/bin/inet6.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+k=`ip a s dev wlp0s20f3 scope global | grep inet6 | grep -v fd16 | cut -d\ -f6 | cut -d/ -f1 | head -n1`
+echo -n $k