add exception for systems using networkmanager

This commit is contained in:
randomuser 2022-06-08 00:31:52 -05:00
parent 7cd0e131ff
commit 3751a7d125
1 changed files with 31 additions and 27 deletions

View File

@ -1,5 +1,9 @@
#!/bin/sh
[ "$(ps -aux | grep -c NetworkManager)" -eq 2 ] && \
printf "NetworkManager is already running!" && \
exit
case $1 in
"c"*)
wpa_supplicant -iwlp3s0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B