From cad7f1bee5411b46bd196c97d90e4a81f339e4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 27 Aug 2021 21:12:14 -0500 Subject: Add edit pacman.conf to menu --- hyperfi | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'hyperfi') diff --git a/hyperfi b/hyperfi index c8667f4..bb61f77 100644 --- a/hyperfi +++ b/hyperfi @@ -738,6 +738,7 @@ installmenu(){ options=() options+=("${txtselectmirrorsbycountry}" "(${txtoptional})") options+=("${txteditmirrorlist}" "(${txtoptional})") + options+=("${txteditpacmanconf}" "(${txtoptional})") options+=("${txtinstallhyperbola}" "pacstrap") options+=("${txtconfighyperbola}" "") sel=$(whiptail --backtitle "${apptitle}" --title "${txtinstallmenu}" --menu "" --cancel-button "${txtunmount}" --default-item "${nextitem}" 0 0 0 \ @@ -753,6 +754,10 @@ installmenu(){ ${EDITOR} /etc/pacman.d/mirrorlist nextitem="${txtinstallhyperbola}" ;; + "${txteditpacmanconf}") + ${EDITOR} /etc/pacman.conf + nextitem="${txtinstallhyperbola}" + ;; "${txtinstallhyperbola}") if(installbase); then nextitem="${txtconfighyperbola}" @@ -922,6 +927,7 @@ archmenu(){ options+=("${txtedit//%1/crypttab}" "(${txtoptional})") options+=("${txtedit//%1/mkinitcpio.conf}" "(${txtoptional})") options+=("${txtedit//%1/mirrorlist}" "(${txtoptional})") + options+=("${txtedit//%1/pacman.conf}" "(${txtoptional})") options+=("${txtbootloader}" "") options+=("${txtextrasmenu}" "") options+=("hyperdi" "${txthyperdidesc}") @@ -1010,6 +1016,10 @@ archmenu(){ ${EDITOR} /mnt/etc/pacman.d/mirrorlist nextitem="${txtedit//%1/mirrorlist}" ;; + "${txtedit//%1/pacman.conf}") + ${EDITOR} /mnt/etc/pacman.d/pacman.conf + nextitem="${txtedit//%1/pacman.conf}" + ;; "${txtbootloader}") archbootloadermenu nextitem="${txtextrasmenu}" @@ -1785,6 +1795,7 @@ loadstrings(){ txtselectmirrorsbycountry="Select mirrors by country" txtselectcountry="Select country" txteditmirrorlist="Edit mirrorlist" + txteditpacmanconf="Edit pacman.conf" txtinstallhyperbola="Install Hyperbola GNU+Linux-libre" txtinstallhyperbolakernel="Kernel" txtinstallhyperbolafirmwares="Firmwares" -- cgit v1.2.3