diff options
author | Matias Linares <matiaslina@openmailbox.org> | 2015-10-23 03:14:36 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@openmailbox.org> | 2015-10-23 03:14:36 -0300 |
commit | 5b132bf1244a008ad3ce67688030a7678831f77d (patch) | |
tree | 501aa27e89f81d5f4bdfaab31c72378991a9c749 /scripts/nm-connected-device | |
download | dotfiles-5b132bf1244a008ad3ce67688030a7678831f77d.tar.gz |
Initial commit
Diffstat (limited to 'scripts/nm-connected-device')
-rwxr-xr-x | scripts/nm-connected-device | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/nm-connected-device b/scripts/nm-connected-device new file mode 100755 index 0000000..c4fc24a --- /dev/null +++ b/scripts/nm-connected-device @@ -0,0 +1,5 @@ +#!/bin/bash + +OUT=$(nmcli device wifi list | grep "^\*" | tail -n 1 | awk -e '{print $2,$8}') + +echo "network $OUT" |