mirror of
https://gitlab.com/prism7/archery.git
synced 2025-02-15 08:29:17 +01:00
Set a variable only to conform with the 'set -u' flag
This commit is contained in:
@@ -4028,6 +4028,7 @@ ${purple}###${nc} Chroot & Configure System ${purple}###${nc}
|
||||
VANILLA_CONF
|
||||
|
||||
if [[ -f /mnt/etc/lightdm/lightdm.conf ]]; then
|
||||
|
||||
if [[ "${packages}" == "6" ]]; then
|
||||
arch-chroot /mnt <<-DEEPIN
|
||||
sed -i 's|^#greeter-session=example-gtk-gnome|greeter-session=lightdm-deepin-greeter|g' /etc/lightdm/lightdm.conf
|
||||
@@ -4082,6 +4083,7 @@ NVIDIAGRUB
|
||||
fi
|
||||
|
||||
if [[ "${vgaconf}" == "y" && "${vendor}" == "Nvidia" ]]; then
|
||||
|
||||
if [[ "${kernelnmbr}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "2" && ${nvdriver} == "2" ]]; then
|
||||
arch-chroot /mnt <<-NVIDIAHOOK
|
||||
echo "
|
||||
@@ -4260,6 +4262,7 @@ NRG
|
||||
OPTIMIZED_CONF
|
||||
|
||||
if [[ "${vgaconf}" == "y" && "${vendor}" == "Nvidia" ]]; then
|
||||
|
||||
if [[ "${kernelnmbr}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "2" && ${nvdriver} == "2" ]]; then
|
||||
arch-chroot /mnt <<-NVIDIAHOOK
|
||||
echo "
|
||||
@@ -4294,6 +4297,7 @@ NVIDIAHOOK
|
||||
# NOTE: Custom System Configuration (Add any extra configuration below):
|
||||
|
||||
if [[ "${packages}" == "11" ]]; then
|
||||
|
||||
arch-chroot /mnt <<-CUSTOM_CONF
|
||||
sed -i "/^#${SETLOCALE}/s/^#//" /etc/locale.gen &&
|
||||
locale-gen &&
|
||||
@@ -4377,6 +4381,7 @@ NVIDIAGRUB
|
||||
fi
|
||||
|
||||
if [[ "${vgaconf}" == "y" && "${vendor}" == "Nvidia" ]]; then
|
||||
|
||||
if [[ "${kernelnmbr}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "2" && ${nvdriver} == "2" ]]; then
|
||||
arch-chroot /mnt <<-NVIDIAHOOK
|
||||
echo "
|
||||
@@ -4436,6 +4441,7 @@ NVIDIAHOOK
|
||||
revision=""
|
||||
greeternmbr=""
|
||||
cust_bootopts=""
|
||||
bluetooth=""
|
||||
|
||||
clear
|
||||
first_check
|
||||
|
Reference in New Issue
Block a user