Merge pull request #173 from TessaiMusa/master
Added NetworkManager in extras menu
This commit is contained in:
commit
e9bca6011e
1 changed files with 11 additions and 0 deletions
11
archfi
11
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};;
|
||||
|
|
Loading…
Reference in a new issue