nmtui requires sudo

merge-requests/278/head
Oleksandr B 1 year ago
parent 548ab4b26a
commit 4f1793087f

@ -16,7 +16,7 @@ while [[ ! -n "$(curl -Is https://manjaro.org | head -1)" ]]; do
if [[ $(cat /proc/1/comm) == "systemd" ]];then
if [[ $(systemctl is-active NetworkManager) == "active" ]]; then
dialog --backtitle ":: Manjaro Architect ::" --yesno "\nPlease connect to the internet:\n" 0 0 && \
clear && nmtui && continue || \
clear && sudo nmtui && continue || \
clear && exit 0
else
dialog --backtitle ":: Manjaro Architect ::" --title " Error: " --msgbox "\nNo network service detected!\nquitting." 0 0 && \

Loading…
Cancel
Save