diff options
| author | Robert Günzler <r@gnzler.io> | 2023-01-17 00:40:10 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2023-01-17 00:40:23 +0100 |
| commit | 97ebc9060926407e8332b9e6a2ae0a259d914aca (patch) | |
| tree | 89306c52e1c298225a9dc567a07982b0683328c3 /bin/connmenu | |
| parent | 58938a1971e4858782c3e275fed4ddfc97bf4a58 (diff) | |
bin/connmenu: retain connection markers
allows identifying known connections Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bin/connmenu')
| -rwxr-xr-x | bin/connmenu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/connmenu b/bin/connmenu index a5b9970..d3285dc 100755 --- a/bin/connmenu +++ b/bin/connmenu @@ -44,7 +44,7 @@ get_services() { clear-notification "$notification_id" connmanctl services | - awk -F ' +' '{ service_id=$NF; $NF=""; $1=""; name=substr($0, 2, length-2); gsub(/[^a-zA-Z0-9-]/, "_", name) } + awk -F ' +' '{ service_id=$NF; $NF=""; info=$1; $1=""; name=substr($0, 2, length-2); gsub(/[^a-zA-Z0-9-]/, "_", name); if (substr(info, 0, 1) == "*") {name="*" name} } name { print name, service_id }' >$SCAN_RESULT } |