Add extra menu
This commit is contained in:
parent
1c9095692b
commit
946812b3f8
1 changed files with 28 additions and 13 deletions
41
archfi
41
archfi
|
@ -904,7 +904,7 @@ archmenu(){
|
||||||
options+=("${txtedit//%1/mkinitcpio.conf}" "(${txtoptional})")
|
options+=("${txtedit//%1/mkinitcpio.conf}" "(${txtoptional})")
|
||||||
options+=("${txtedit//%1/mirrorlist}" "(${txtoptional})")
|
options+=("${txtedit//%1/mirrorlist}" "(${txtoptional})")
|
||||||
options+=("${txtbootloader}" "")
|
options+=("${txtbootloader}" "")
|
||||||
options+=("${txtenable//%1/dhcpcd}" "systemctl enable dhcpcd")
|
options+=("${txtextrasmenu}" "")
|
||||||
options+=("archdi" "${txtarchdidesc}")
|
options+=("archdi" "${txtarchdidesc}")
|
||||||
sel=$(whiptail --backtitle "${apptitle}" --title "${txtarchinstallmenu}" --menu "" --cancel-button "${txtback}" --default-item "${nextitem}" 0 0 0 \
|
sel=$(whiptail --backtitle "${apptitle}" --title "${txtarchinstallmenu}" --menu "" --cancel-button "${txtback}" --default-item "${nextitem}" 0 0 0 \
|
||||||
"${options[@]}" \
|
"${options[@]}" \
|
||||||
|
@ -993,10 +993,10 @@ archmenu(){
|
||||||
;;
|
;;
|
||||||
"${txtbootloader}")
|
"${txtbootloader}")
|
||||||
archbootloadermenu
|
archbootloadermenu
|
||||||
nextitem="${txtenable//%1/dhcpcd}"
|
nextitem="${txtextrasmenu}"
|
||||||
;;
|
;;
|
||||||
"${txtenable//%1/dhcpcd}")
|
"${txtextrasmenu}")
|
||||||
archenabledhcpcd
|
archextrasmenu
|
||||||
nextitem="archdi"
|
nextitem="archdi"
|
||||||
;;
|
;;
|
||||||
"archdi")
|
"archdi")
|
||||||
|
@ -1676,16 +1676,29 @@ archrefindinstallchroot(){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
archenabledhcpcd(){
|
archextrasmenu(){
|
||||||
if (whiptail --backtitle "${apptitle}" --title "${txtenable//%1/dhcpcd}" --yesno "${txtenable//%1/dhcpcd} ?" 0 0) then
|
pkgs=""
|
||||||
clear
|
options=()
|
||||||
|
options+=("nano" "" on)
|
||||||
echo "pacstrap /mnt dhcpcd"
|
options+=("vim" "" on)
|
||||||
|
options+=("dhcpcd" "" on)
|
||||||
pacstrap /mnt dhcpcd
|
options+=("dialog" "" on)
|
||||||
archchroot enabledhcpcd
|
sel=$(whiptail --backtitle "${apptitle}" --title "${txtextrasmenu}" --checklist "" 0 0 0 \
|
||||||
pressanykey
|
"${options[@]}" \
|
||||||
|
3>&1 1>&2 2>&3)
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
|
for itm in $sel; do
|
||||||
|
pkgs="$pkgs $(echo $itm | sed 's/"//g')"
|
||||||
|
done
|
||||||
|
clear
|
||||||
|
echo "pacstrap /mnt ${pkgs}"
|
||||||
|
pacstrap /mnt ${pkgs}
|
||||||
|
if [[ "${pkgs}" == *"dhcpcd"* ]]; then
|
||||||
|
archchroot enabledhcpcd
|
||||||
|
fi
|
||||||
|
pressanykey
|
||||||
}
|
}
|
||||||
archenabledhcpcdchroot(){
|
archenabledhcpcdchroot(){
|
||||||
echo "systemctl enable dhcpcd"
|
echo "systemctl enable dhcpcd"
|
||||||
|
@ -1859,6 +1872,8 @@ loadstrings(){
|
||||||
txtbootloadersystemdmenu="Systemd-boot Install Menu"
|
txtbootloadersystemdmenu="Systemd-boot Install Menu"
|
||||||
|
|
||||||
txtbootloaderrefindmenu="rEFInd Install Menu"
|
txtbootloaderrefindmenu="rEFInd Install Menu"
|
||||||
|
|
||||||
|
txtextrasmenu="Extras"
|
||||||
|
|
||||||
txtoptional="Optional"
|
txtoptional="Optional"
|
||||||
txtrecommandeasyinst="Recommanded for easy install"
|
txtrecommandeasyinst="Recommanded for easy install"
|
||||||
|
|
Loading…
Reference in a new issue