mirror of
https://gitlab.com/prism7/archery.git
synced 2025-02-15 08:29:17 +01:00
Code indentation
This commit is contained in:
parent
d734e4ab90
commit
cda418d4a7
1 changed files with 67 additions and 70 deletions
29
Amelia.sh
29
Amelia.sh
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Amelia Installer
|
||||
# https://gitlab.com/prism7/archery
|
||||
# Version: 8.4.2
|
||||
# Version: 8.4.3
|
||||
|
||||
set -euo pipefail
|
||||
###################################################################################################
|
||||
|
@ -1453,8 +1453,6 @@ ${magenta}###${nc}-------------------------------------${magenta}[ ${bwhite}Grap
|
|||
###################################################################################################
|
||||
dtct_single_vga() {
|
||||
|
||||
local prompt="Graphics Setup"
|
||||
|
||||
if [[ "${intelcount}" -eq "1" ]]; then
|
||||
vendor="Intel"
|
||||
sourcetype="Open-source"
|
||||
|
@ -1510,8 +1508,6 @@ Enter [Y/n]: "
|
|||
###################################################################################################
|
||||
dtct_multi_vga() {
|
||||
|
||||
local prompt="Graphics Setup"
|
||||
|
||||
if [[ "${vgacount}" == "2" ]]; then
|
||||
vga_setup="Dual"
|
||||
elif [[ "${vgacount}" == "3" ]]; then
|
||||
|
@ -1661,6 +1657,7 @@ Enter a number: "
|
|||
sourcetype="Proprietary"
|
||||
vgaconf="y"
|
||||
elif [[ "${vendor}" == "none" ]]; then
|
||||
local prompt="Graphics Setup"
|
||||
vgaconf="n"
|
||||
skip
|
||||
ok
|
||||
|
@ -2603,6 +2600,7 @@ ${magenta}###${nc}---------------------------------${magenta}[ ${bwhite}Automati
|
|||
|
||||
"
|
||||
read -r -s -n 1
|
||||
|
||||
if [[ -e "${instl_drive}" && "${use_manpreset}" != "yes" ]]; then
|
||||
sleep 0.2
|
||||
NC "
|
||||
|
@ -3818,8 +3816,8 @@ Enter a name: "
|
|||
Enter a name: "
|
||||
read -r -p "
|
||||
==> " ENCRHOME
|
||||
echo
|
||||
|
||||
echo
|
||||
if [[ -z "${ENCRHOME}" ]]; then
|
||||
sleep 0.2
|
||||
RED "
|
||||
|
@ -4054,6 +4052,7 @@ Enter a Mode number: "
|
|||
###################################################################################################
|
||||
auto_mode() {
|
||||
|
||||
espfs="$(lsblk -dno FSTYPE "${esp_dev}")"
|
||||
sleep 0.2
|
||||
NC "
|
||||
${magenta}###${nc}----------------------------------------${magenta}[ ${bwhite}Auto Mode${nc} ${magenta}]${nc}----------------------------------------${magenta}###
|
||||
|
@ -4064,9 +4063,6 @@ ${magenta}###${nc}----------------------------------------${magenta}[ ${bwhite}A
|
|||
> Auto Mode Selected
|
||||
|
||||
"
|
||||
sleep 0.2
|
||||
espfs="$(lsblk -dno FSTYPE "${esp_dev}")"
|
||||
|
||||
if [[ "${fs}" == "1" ]]; then
|
||||
if mkfs.ext4 -F -L Root "${root_dev}" > /dev/null 2> amelia_log.txt ; then
|
||||
tune2fs -O fast_commit "${root_dev}" > /dev/null 2> amelia_log.txt || err_abort
|
||||
|
@ -4223,6 +4219,7 @@ ${magenta}###${nc}----------------------------------------${magenta}[ ${bwhite}A
|
|||
manual_mode() {
|
||||
|
||||
volumes="$(fdisk -l | grep '^/dev' | cat --number)"
|
||||
|
||||
until form_esp; do : ; done
|
||||
if [[ "${xbootloader}" == "yes" ]]; then
|
||||
until form_xboot; do : ; done
|
||||
|
@ -5225,7 +5222,6 @@ Enter country name or country code ${bwhite}(Empty for Defaults)${blue}: "
|
|||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
YELLOW "
|
||||
|
||||
|
||||
|
@ -5283,7 +5279,6 @@ Enter a number: "
|
|||
y_n
|
||||
return 1
|
||||
fi
|
||||
|
||||
YELLOW "
|
||||
|
||||
|
||||
|
@ -5809,6 +5804,7 @@ UKI
|
|||
if [[ -e /mnt/boot/initramfs-"${kernel}"-fallback.img ]]; then
|
||||
rm /mnt/boot/initramfs-"${kernel}"-fallback.img || exit
|
||||
fi
|
||||
|
||||
elif [[ "${uki}" == "n" ]]; then
|
||||
if arch-chroot /mnt <<-NOUKI > /dev/null 2>&1 2> amelia_log.txt ; then
|
||||
cp /etc/mkinitcpio.d/${kernel}.preset /etc/mkinitcpio.d/${kernel}.preset.bak || exit
|
||||
|
@ -5867,7 +5863,7 @@ SECSIGN
|
|||
###################################################################################################
|
||||
set_vars() {
|
||||
|
||||
#### Encrypted Setup Vars
|
||||
#### Encrypted-Setup Variables
|
||||
if [[ "${encrypt}" == "yes" ]]; then
|
||||
# Encrypted Root Device
|
||||
encr_root_dev="/dev/mapper/${ENCROOT}"
|
||||
|
@ -5918,6 +5914,7 @@ set_vars() {
|
|||
# Graphics Kernel Parameters
|
||||
vga_bootopts=(nvidia.NVreg_UsePageAttributeTable=1)
|
||||
|
||||
# Disable GSP Firmware
|
||||
if [[ "${nogsp}" == "y" ]]; then
|
||||
vga_bootopts+=(nvidia.NVreg_EnableGpuFirmware=0)
|
||||
fi
|
||||
|
@ -5971,7 +5968,7 @@ set_vars() {
|
|||
fi
|
||||
#-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
#### Unencrypted Setup Vars
|
||||
#### Unencrypted-Setup Variables
|
||||
elif [[ "${encrypt}" == "no" ]]; then
|
||||
### Swap Setup
|
||||
## Zram Swap
|
||||
|
@ -5997,6 +5994,7 @@ set_vars() {
|
|||
# Graphics Kernel Parameters
|
||||
vga_bootopts=(nvidia.NVreg_UsePageAttributeTable=1)
|
||||
|
||||
# Disable GSP Firmware
|
||||
if [[ "${nogsp}" == "y" ]]; then
|
||||
vga_bootopts+=(nvidia.NVreg_EnableGpuFirmware=0)
|
||||
fi
|
||||
|
@ -6058,7 +6056,7 @@ chroot_conf() {
|
|||
${magenta}###${nc}--------------------------------${magenta}[ ${bwhite}Chroot & Configure System${nc} ${magenta}]${nc}--------------------------------${magenta}###${nc}
|
||||
"
|
||||
|
||||
# 'Vanilla' Configuration:
|
||||
# 'Vanilla' Setups Configuration:
|
||||
if [[ "${packages}" =~ ^(1|3|5|6|7|8|9|10|11|13)$ ]]; then
|
||||
cnfg
|
||||
main_chroot
|
||||
|
@ -6194,7 +6192,7 @@ CUSTOMSERV
|
|||
completion
|
||||
fi
|
||||
#--------------------------------------------------------------------------------------------------
|
||||
# Minimal Plasma/Gnome Optimized System Configuration:
|
||||
# Minimal Plasma/Gnome Optimized-System Configuration:
|
||||
if [[ "${packages}" == "2" || "${packages}" == "4" ]]; then
|
||||
local stage_prompt="Optimized System Configuration"
|
||||
cnfg
|
||||
|
@ -6381,7 +6379,6 @@ MULTILIB
|
|||
secboot_sign
|
||||
completion
|
||||
fi
|
||||
|
||||
umount -R /mnt
|
||||
reboot
|
||||
exit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue