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:
parent
d218720d1e
commit
8f5bea0416
1 changed files with 6 additions and 0 deletions
|
@ -4028,6 +4028,7 @@ ${purple}###${nc} Chroot & Configure System ${purple}###${nc}
|
||||||
VANILLA_CONF
|
VANILLA_CONF
|
||||||
|
|
||||||
if [[ -f /mnt/etc/lightdm/lightdm.conf ]]; then
|
if [[ -f /mnt/etc/lightdm/lightdm.conf ]]; then
|
||||||
|
|
||||||
if [[ "${packages}" == "6" ]]; then
|
if [[ "${packages}" == "6" ]]; then
|
||||||
arch-chroot /mnt <<-DEEPIN
|
arch-chroot /mnt <<-DEEPIN
|
||||||
sed -i 's|^#greeter-session=example-gtk-gnome|greeter-session=lightdm-deepin-greeter|g' /etc/lightdm/lightdm.conf
|
sed -i 's|^#greeter-session=example-gtk-gnome|greeter-session=lightdm-deepin-greeter|g' /etc/lightdm/lightdm.conf
|
||||||
|
@ -4082,6 +4083,7 @@ NVIDIAGRUB
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${vgaconf}" == "y" && "${vendor}" == "Nvidia" ]]; then
|
if [[ "${vgaconf}" == "y" && "${vendor}" == "Nvidia" ]]; then
|
||||||
|
|
||||||
if [[ "${kernelnmbr}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "2" && ${nvdriver} == "2" ]]; then
|
if [[ "${kernelnmbr}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "2" && ${nvdriver} == "2" ]]; then
|
||||||
arch-chroot /mnt <<-NVIDIAHOOK
|
arch-chroot /mnt <<-NVIDIAHOOK
|
||||||
echo "
|
echo "
|
||||||
|
@ -4260,6 +4262,7 @@ NRG
|
||||||
OPTIMIZED_CONF
|
OPTIMIZED_CONF
|
||||||
|
|
||||||
if [[ "${vgaconf}" == "y" && "${vendor}" == "Nvidia" ]]; then
|
if [[ "${vgaconf}" == "y" && "${vendor}" == "Nvidia" ]]; then
|
||||||
|
|
||||||
if [[ "${kernelnmbr}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "2" && ${nvdriver} == "2" ]]; then
|
if [[ "${kernelnmbr}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "2" && ${nvdriver} == "2" ]]; then
|
||||||
arch-chroot /mnt <<-NVIDIAHOOK
|
arch-chroot /mnt <<-NVIDIAHOOK
|
||||||
echo "
|
echo "
|
||||||
|
@ -4294,6 +4297,7 @@ NVIDIAHOOK
|
||||||
# NOTE: Custom System Configuration (Add any extra configuration below):
|
# NOTE: Custom System Configuration (Add any extra configuration below):
|
||||||
|
|
||||||
if [[ "${packages}" == "11" ]]; then
|
if [[ "${packages}" == "11" ]]; then
|
||||||
|
|
||||||
arch-chroot /mnt <<-CUSTOM_CONF
|
arch-chroot /mnt <<-CUSTOM_CONF
|
||||||
sed -i "/^#${SETLOCALE}/s/^#//" /etc/locale.gen &&
|
sed -i "/^#${SETLOCALE}/s/^#//" /etc/locale.gen &&
|
||||||
locale-gen &&
|
locale-gen &&
|
||||||
|
@ -4377,6 +4381,7 @@ NVIDIAGRUB
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${vgaconf}" == "y" && "${vendor}" == "Nvidia" ]]; then
|
if [[ "${vgaconf}" == "y" && "${vendor}" == "Nvidia" ]]; then
|
||||||
|
|
||||||
if [[ "${kernelnmbr}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "2" && ${nvdriver} == "2" ]]; then
|
if [[ "${kernelnmbr}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "1" ]] || [[ "${kernelnmbr}" == "2" && "${family}" == "2" && ${nvdriver} == "2" ]]; then
|
||||||
arch-chroot /mnt <<-NVIDIAHOOK
|
arch-chroot /mnt <<-NVIDIAHOOK
|
||||||
echo "
|
echo "
|
||||||
|
@ -4436,6 +4441,7 @@ NVIDIAHOOK
|
||||||
revision=""
|
revision=""
|
||||||
greeternmbr=""
|
greeternmbr=""
|
||||||
cust_bootopts=""
|
cust_bootopts=""
|
||||||
|
bluetooth=""
|
||||||
|
|
||||||
clear
|
clear
|
||||||
first_check
|
first_check
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue