added networkmanager

This commit is contained in:
TessaiMusa 2021-04-02 01:42:37 +05:30
parent b461685f04
commit 9bcbee3a64

11
archfi
View file

@ -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};;