9 lines
161 B
Bash
Executable file
9 lines
161 B
Bash
Executable file
#!/bin/bash
|
|
|
|
network_status='false'
|
|
|
|
if nmcli -g TYPE connection show --active | grep -q "${1}";then
|
|
network_status='true'
|
|
fi
|
|
|
|
printf '%s' "${network_status}"
|