From 5b132bf1244a008ad3ce67688030a7678831f77d Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Fri, 23 Oct 2015 03:14:36 -0300 Subject: Initial commit --- scripts/nm-connected-device | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 scripts/nm-connected-device (limited to 'scripts/nm-connected-device') 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" -- cgit v1.2.3-70-g09d2