summaryrefslogtreecommitdiff
path: root/bar/wmip
diff options
context:
space:
mode:
Diffstat (limited to 'bar/wmip')
-rwxr-xr-xbar/wmip2
1 files changed, 2 insertions, 0 deletions
diff --git a/bar/wmip b/bar/wmip
new file mode 100755
index 0000000..63e5676
--- /dev/null
+++ b/bar/wmip
@@ -0,0 +1,2 @@
+#!/bin/sh
+ip addr | awk '!/ lo/ && /inet / { sub(/\/.*/, "", $2); print $2 }'