From 9bcbee3a649ce8b62f3678ffe9f410926ac432bf Mon Sep 17 00:00:00 2001 From: TessaiMusa <49408514+TessaiMusa@users.noreply.github.com> Date: Fri, 2 Apr 2021 01:42:37 +0530 Subject: [PATCH] added networkmanager --- archfi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/archfi b/archfi index 5887517..1033676 100644 --- a/archfi +++ b/archfi @@ -1725,6 +1725,7 @@ archextrasmenu(){ options+=("nano" "" on) options+=("vim" "" on) options+=("dhcpcd" "" on) + options+=("networkmanager" "" off) sel=$(whiptail --backtitle "${apptitle}" --title "${txtextrasmenu}" --checklist "" 0 0 0 \ "${options[@]}" \ 3>&1 1>&2 2>&3) @@ -1740,6 +1741,9 @@ archextrasmenu(){ if [[ "${pkgs}" == *"dhcpcd"* ]]; then archchroot enabledhcpcd fi + if [[ "${pkgs}" == *"networkmanager"* ]]; then + archchroot enablenetworkmanager + fi pressanykey } archenabledhcpcdchroot(){ @@ -1748,6 +1752,12 @@ archenabledhcpcdchroot(){ exit } +archenablenetworkmanagerchroot(){ + echo "systemctl enable NetworkManager" + systemctl enable NetworkManager + exit +} + installarchdi(){ txtinstallarchdi="Arch Linux Desktop Install (archdi) is a second script who can help you to install a full workstation.\n\nYou can just launch the script or install it. Choose in the next menu.\n\nArch Linux Desktop Install as two dependencies : wget and libnewt.\n\npacstrap wget libnewt ?" if(whiptail --backtitle "${apptitle}" --title "archdi" --yesno "${txtinstallarchdi}" 0 0) then @@ -1992,6 +2002,7 @@ if [ "${chroot}" = "1" ]; then 'settimelocal') archsettimelocalchroot;; 'genmkinitcpio') archgenmkinitcpiochroot;; 'enabledhcpcd') archenabledhcpcdchroot;; + 'enablenetworkmanager') archenablenetworkmanagerchroot;; 'grubinstall') archgrubinstallchroot;; 'grubbootloaderinstall') archgrubinstallbootloaderchroot ${args};; 'grubbootloaderefiinstall') archgrubinstallbootloaderefichroot ${args};;