mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-26 13:18:35 -06:00
11 lines
213 B
Text
11 lines
213 B
Text
|
# Toggles WiFi on a Linux system. Make sure that you have nmcli installed.
|
||
|
# I use it with a shortcut.
|
||
|
|
||
|
#!/bin/bash
|
||
|
|
||
|
if [ $(nmcli r wifi | grep -c enabled) -eq 1 ]; then
|
||
|
nmcli r wifi off
|
||
|
else
|
||
|
nmcli r wifi on
|
||
|
fi
|