Merge pull request #173 from TessaiMusa/master

Added NetworkManager in extras menu
This commit is contained in:
MatMoul 2021-06-05 01:17:18 +02:00 committed by GitHub
commit e9bca6011e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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