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+=("nano" "" on)
|
||||||
options+=("vim" "" on)
|
options+=("vim" "" on)
|
||||||
options+=("dhcpcd" "" on)
|
options+=("dhcpcd" "" on)
|
||||||
|
options+=("networkmanager" "" off)
|
||||||
sel=$(whiptail --backtitle "${apptitle}" --title "${txtextrasmenu}" --checklist "" 0 0 0 \
|
sel=$(whiptail --backtitle "${apptitle}" --title "${txtextrasmenu}" --checklist "" 0 0 0 \
|
||||||
"${options[@]}" \
|
"${options[@]}" \
|
||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
|
@ -1740,6 +1741,9 @@ archextrasmenu(){
|
||||||
if [[ "${pkgs}" == *"dhcpcd"* ]]; then
|
if [[ "${pkgs}" == *"dhcpcd"* ]]; then
|
||||||
archchroot enabledhcpcd
|
archchroot enabledhcpcd
|
||||||
fi
|
fi
|
||||||
|
if [[ "${pkgs}" == *"networkmanager"* ]]; then
|
||||||
|
archchroot enablenetworkmanager
|
||||||
|
fi
|
||||||
pressanykey
|
pressanykey
|
||||||
}
|
}
|
||||||
archenabledhcpcdchroot(){
|
archenabledhcpcdchroot(){
|
||||||
|
@ -1748,6 +1752,12 @@ archenabledhcpcdchroot(){
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
archenablenetworkmanagerchroot(){
|
||||||
|
echo "systemctl enable NetworkManager"
|
||||||
|
systemctl enable NetworkManager
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
installarchdi(){
|
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 ?"
|
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
|
if(whiptail --backtitle "${apptitle}" --title "archdi" --yesno "${txtinstallarchdi}" 0 0) then
|
||||||
|
@ -1992,6 +2002,7 @@ if [ "${chroot}" = "1" ]; then
|
||||||
'settimelocal') archsettimelocalchroot;;
|
'settimelocal') archsettimelocalchroot;;
|
||||||
'genmkinitcpio') archgenmkinitcpiochroot;;
|
'genmkinitcpio') archgenmkinitcpiochroot;;
|
||||||
'enabledhcpcd') archenabledhcpcdchroot;;
|
'enabledhcpcd') archenabledhcpcdchroot;;
|
||||||
|
'enablenetworkmanager') archenablenetworkmanagerchroot;;
|
||||||
'grubinstall') archgrubinstallchroot;;
|
'grubinstall') archgrubinstallchroot;;
|
||||||
'grubbootloaderinstall') archgrubinstallbootloaderchroot ${args};;
|
'grubbootloaderinstall') archgrubinstallbootloaderchroot ${args};;
|
||||||
'grubbootloaderefiinstall') archgrubinstallbootloaderefichroot ${args};;
|
'grubbootloaderefiinstall') archgrubinstallbootloaderefichroot ${args};;
|
||||||
|
|
Loading…
Reference in a new issue