diff options
-rwxr-xr-x | usr/local/bin/inet6.sh | 3 |
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 |