mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 16:52:12 +02:00
new function for auto installing graphics drivers
This commit is contained in:
+101
-88
@@ -7,16 +7,14 @@ function log() {
|
|||||||
function ensure_user_folder_present() {
|
function ensure_user_folder_present() {
|
||||||
local folder_path="$1"
|
local folder_path="$1"
|
||||||
|
|
||||||
if [[ -d "$folder_path" ]]
|
if [[ -d "$folder_path" ]]; then
|
||||||
then
|
|
||||||
log "Dossier $folder_path déjà présent."
|
log "Dossier $folder_path déjà présent."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log "Création du dossier $folder_path..."
|
log "Création du dossier $folder_path..."
|
||||||
|
|
||||||
if ! mkdir --parent "$folder_path"
|
if ! mkdir --parent "$folder_path"; then
|
||||||
then
|
|
||||||
log "Impossible de créer le dossier $folder_path."
|
log "Impossible de créer le dossier $folder_path."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -25,7 +23,7 @@ function ensure_user_folder_present() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function is_installed() {
|
function is_installed() {
|
||||||
pacman -Q "$1" > /dev/null 2>&1
|
pacman -Q "$1" >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_global_git_configuration_set() {
|
function is_global_git_configuration_set() {
|
||||||
@@ -39,14 +37,12 @@ function is_global_root_git_configuration_set() {
|
|||||||
function ensure_git_configuration_set() {
|
function ensure_git_configuration_set() {
|
||||||
ensure_package_is_installed git
|
ensure_package_is_installed git
|
||||||
|
|
||||||
if is_global_git_configuration_set "$1"
|
if is_global_git_configuration_set "$1"; then
|
||||||
then
|
|
||||||
log "Configuration Git pour $1 déjà présente."
|
log "Configuration Git pour $1 déjà présente."
|
||||||
else
|
else
|
||||||
if log "Configuration Git pour $1 manquante, configuration en cours..." \
|
if log "Configuration Git pour $1 manquante, configuration en cours..." &&
|
||||||
&& read -rp "Valeur pour $1 : " CONFIGURATION_VALUE \
|
read -rp "Valeur pour $1 : " CONFIGURATION_VALUE &&
|
||||||
&& git config --global "$1" "$CONFIGURATION_VALUE"
|
git config --global "$1" "$CONFIGURATION_VALUE"; then
|
||||||
then
|
|
||||||
log "Configuration pour $1 installée."
|
log "Configuration pour $1 installée."
|
||||||
else
|
else
|
||||||
log "Impossible de configurer $1 pour Git."
|
log "Impossible de configurer $1 pour Git."
|
||||||
@@ -58,14 +54,12 @@ function ensure_git_configuration_set() {
|
|||||||
function ensure_root_git_configuration_set() {
|
function ensure_root_git_configuration_set() {
|
||||||
ensure_package_is_installed git
|
ensure_package_is_installed git
|
||||||
|
|
||||||
if is_global_root_git_configuration_set "$1"
|
if is_global_root_git_configuration_set "$1"; then
|
||||||
then
|
|
||||||
log "Configuration administrateur Git pour $1 déjà présente."
|
log "Configuration administrateur Git pour $1 déjà présente."
|
||||||
else
|
else
|
||||||
if log "Configuration administrateur Git pour $1 manquante, configuration en cours..." \
|
if log "Configuration administrateur Git pour $1 manquante, configuration en cours..." &&
|
||||||
&& read -rp "Valeur pour $1 : " CONFIGURATION_VALUE \
|
read -rp "Valeur pour $1 : " CONFIGURATION_VALUE &&
|
||||||
&& sudo git config --global "$1" "$CONFIGURATION_VALUE"
|
sudo git config --global "$1" "$CONFIGURATION_VALUE"; then
|
||||||
then
|
|
||||||
log "Configuration administrateur pour $1 installée."
|
log "Configuration administrateur pour $1 installée."
|
||||||
else
|
else
|
||||||
log "Impossible de configurer $1 pour l'adminsitrateur Git."
|
log "Impossible de configurer $1 pour l'adminsitrateur Git."
|
||||||
@@ -75,34 +69,31 @@ function ensure_root_git_configuration_set() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ensure_yay_installed() {
|
function ensure_yay_installed() {
|
||||||
if ! is_installed yay
|
if ! is_installed yay; then
|
||||||
then
|
|
||||||
log "Installation de yay..."
|
log "Installation de yay..."
|
||||||
sudo pacman -Syyu --needed --noconfirm git base-devel \
|
sudo pacman -Syyu --needed --noconfirm git base-devel &&
|
||||||
&& rm -rf /tmp/yay \
|
rm -rf /tmp/yay &&
|
||||||
&& mkdir --parent /tmp/yay \
|
mkdir --parent /tmp/yay &&
|
||||||
&& git clone https://aur.archlinux.org/yay /tmp/yay \
|
git clone https://aur.archlinux.org/yay /tmp/yay &&
|
||||||
&& cd /tmp/yay \
|
cd /tmp/yay &&
|
||||||
&& makepkg -sri --noconfirm --needed \
|
makepkg -sri --noconfirm --needed &&
|
||||||
&& yay --version \
|
yay --version &&
|
||||||
&& cd ... || exit
|
cd ... || exit
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function ensure_system_is_updated() {
|
function ensure_system_is_updated() {
|
||||||
ensure_yay_installed \
|
ensure_yay_installed &&
|
||||||
&& log "Mise à jour du système d'exploitation" \
|
log "Mise à jour du système d'exploitation" &&
|
||||||
&& yay --noconfirm --needed
|
yay --noconfirm --needed
|
||||||
}
|
}
|
||||||
|
|
||||||
function ensure_package_is_installed() {
|
function ensure_package_is_installed() {
|
||||||
ensure_yay_installed
|
ensure_yay_installed
|
||||||
|
|
||||||
if ! is_installed "$1"
|
if ! is_installed "$1"; then
|
||||||
then
|
|
||||||
log "Installation de $1..."
|
log "Installation de $1..."
|
||||||
if ! yay -S --noconfirm --needed "$1"
|
if ! yay -S --noconfirm --needed "$1"; then
|
||||||
then
|
|
||||||
log "Echec lors de l'installation de $1."
|
log "Echec lors de l'installation de $1."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -122,8 +113,7 @@ function ensure_package_group_is_installed() {
|
|||||||
|
|
||||||
members=$(pacman -Sg "$group_name" 2>/dev/null | awk '{print $2}')
|
members=$(pacman -Sg "$group_name" 2>/dev/null | awk '{print $2}')
|
||||||
|
|
||||||
if [[ -z "$members" ]]
|
if [[ -z "$members" ]]; then
|
||||||
then
|
|
||||||
log "Le groupe '$group_name' n'existe pas ou ne contient aucun paquet." >&2
|
log "Le groupe '$group_name' n'existe pas ou ne contient aucun paquet." >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -131,8 +121,7 @@ function ensure_package_group_is_installed() {
|
|||||||
missing_packages=""
|
missing_packages=""
|
||||||
|
|
||||||
for pkg in $members; do
|
for pkg in $members; do
|
||||||
if ! is_installed "$pkg"
|
if ! is_installed "$pkg"; then
|
||||||
then
|
|
||||||
missing_packages+="$pkg "
|
missing_packages+="$pkg "
|
||||||
exit_status=1
|
exit_status=1
|
||||||
fi
|
fi
|
||||||
@@ -143,26 +132,24 @@ function ensure_package_group_is_installed() {
|
|||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
log "Le groupe '$group_name' est INCOMPLET. Paquets manquants :"
|
log "Le groupe '$group_name' est INCOMPLET. Paquets manquants :"
|
||||||
for pkg in $missing_pkgs
|
for pkg in $missing_pkgs; do
|
||||||
do
|
|
||||||
ensure_package_is_installed "$pkg"
|
ensure_package_is_installed "$pkg"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function synchronize_user_folder() {
|
function synchronize_user_folder() {
|
||||||
log "Synchronisation du dossier $1 vers $2..." \
|
log "Synchronisation du dossier $1 vers $2..." &&
|
||||||
&& rsync --archive --quiet --delete "$1" "$2"
|
rsync --archive --quiet --delete "$1" "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
function synchronize_root_folder() {
|
function synchronize_root_folder() {
|
||||||
log "Synchronisation du dossier $1 vers $2..." \
|
log "Synchronisation du dossier $1 vers $2..." &&
|
||||||
&& sudo rsync --archive --quiet --delete "$1" "$2"
|
sudo rsync --archive --quiet --delete "$1" "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
function ensure_group_is_installed() {
|
function ensure_group_is_installed() {
|
||||||
if groups "$USER" | grep "$1" > /dev/null 2>&1
|
if groups "$USER" | grep "$1" >/dev/null 2>&1; then
|
||||||
then
|
|
||||||
log "Groupe $1 déjà présent pour l'utilisateur $USER."
|
log "Groupe $1 déjà présent pour l'utilisateur $USER."
|
||||||
else
|
else
|
||||||
log "Groupe $1 absent pour l'utilisateur $USER, configuration..."
|
log "Groupe $1 absent pour l'utilisateur $USER, configuration..."
|
||||||
@@ -176,7 +163,7 @@ function ensure_service_active() {
|
|||||||
if ! systemctl is-enabled --quiet "${service_name}"; then
|
if ! systemctl is-enabled --quiet "${service_name}"; then
|
||||||
log "Le service '${service_name}' n'est pas activé. Activation en cours..."
|
log "Le service '${service_name}' n'est pas activé. Activation en cours..."
|
||||||
|
|
||||||
if ! sudo systemctl enable "${service_name}" > /dev/null 2>&1; then
|
if ! sudo systemctl enable "${service_name}" >/dev/null 2>&1; then
|
||||||
log "Impossible d'activer le service '${service_name}'."
|
log "Impossible d'activer le service '${service_name}'."
|
||||||
else
|
else
|
||||||
log "Service $service_name activé."
|
log "Service $service_name activé."
|
||||||
@@ -188,7 +175,7 @@ function ensure_service_active() {
|
|||||||
if ! systemctl is-active --quiet "${service_name}"; then
|
if ! systemctl is-active --quiet "${service_name}"; then
|
||||||
log "Le service '${service_name}' n'est pas démarré. Démarrage en cours..."
|
log "Le service '${service_name}' n'est pas démarré. Démarrage en cours..."
|
||||||
|
|
||||||
if ! sudo systemctl start "${service_name}" > /dev/null 2>&1; then
|
if ! sudo systemctl start "${service_name}" >/dev/null 2>&1; then
|
||||||
log "Impossible de démarrer le service '${service_name}'."
|
log "Impossible de démarrer le service '${service_name}'."
|
||||||
else
|
else
|
||||||
log "Service '${service_name}' démarré."
|
log "Service '${service_name}' démarré."
|
||||||
@@ -201,12 +188,10 @@ function ensure_service_active() {
|
|||||||
function ensure_user_service_active() {
|
function ensure_user_service_active() {
|
||||||
local service_name="$1"
|
local service_name="$1"
|
||||||
|
|
||||||
if ! systemctl --user is-enabled --quiet "${service_name}"
|
if ! systemctl --user is-enabled --quiet "${service_name}"; then
|
||||||
then
|
|
||||||
log "Le service '${service_name}' n'est pas activé. Activation en cours..."
|
log "Le service '${service_name}' n'est pas activé. Activation en cours..."
|
||||||
|
|
||||||
if ! systemctl --quiet --user enable "${service_name}"
|
if ! systemctl --quiet --user enable "${service_name}"; then
|
||||||
then
|
|
||||||
log "Impossible d'activer le service '${service_name}'."
|
log "Impossible d'activer le service '${service_name}'."
|
||||||
else
|
else
|
||||||
log "Service $service_name activé."
|
log "Service $service_name activé."
|
||||||
@@ -215,12 +200,10 @@ function ensure_user_service_active() {
|
|||||||
log "Service $service_name déjà activé."
|
log "Service $service_name déjà activé."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! systemctl --user is-active --quiet "${service_name}"
|
if ! systemctl --user is-active --quiet "${service_name}"; then
|
||||||
then
|
|
||||||
log "Le service '${service_name}' n'est pas démarré. Démarrage en cours..."
|
log "Le service '${service_name}' n'est pas démarré. Démarrage en cours..."
|
||||||
|
|
||||||
if ! systemctl --quiet --user start "${service_name}"
|
if ! systemctl --quiet --user start "${service_name}"; then
|
||||||
then
|
|
||||||
log "Impossible de démarrer le service '${service_name}'."
|
log "Impossible de démarrer le service '${service_name}'."
|
||||||
else
|
else
|
||||||
log "Service '${service_name}' démarré."
|
log "Service '${service_name}' démarré."
|
||||||
@@ -234,13 +217,11 @@ function ensure_ssh_key_installed() {
|
|||||||
# Installing ssk-keygen and other OpenSSH related packages
|
# Installing ssk-keygen and other OpenSSH related packages
|
||||||
ensure_package_is_installed openssh
|
ensure_package_is_installed openssh
|
||||||
|
|
||||||
if ls -d ~/.ssh/*.pub > /dev/null 2>&1
|
if ls -d ~/.ssh/*.pub >/dev/null 2>&1; then
|
||||||
then
|
|
||||||
log "Clé SSH configurée sur ce système d'exploitation."
|
log "Clé SSH configurée sur ce système d'exploitation."
|
||||||
else
|
else
|
||||||
log "Aucune clé SSH configurée sur ce système d'exploitation."
|
log "Aucune clé SSH configurée sur ce système d'exploitation."
|
||||||
if ! ssh-keygen -t ed25519
|
if ! ssh-keygen -t ed25519; then
|
||||||
then
|
|
||||||
log "Impossible d'installer la clé SSH."
|
log "Impossible d'installer la clé SSH."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -248,16 +229,14 @@ function ensure_ssh_key_installed() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ensure_shell_installed() {
|
function ensure_shell_installed() {
|
||||||
if grep "^$USER:.*:.*/$1$" /etc/passwd > /dev/null 2>&1
|
if grep "^$USER:.*:.*/$1$" /etc/passwd >/dev/null 2>&1; then
|
||||||
then
|
|
||||||
log "Shell $1 déjà installé pour l'utilisateur $USER."
|
log "Shell $1 déjà installé pour l'utilisateur $USER."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log "Installation du shell $1 pour $USER."
|
log "Installation du shell $1 pour $USER."
|
||||||
|
|
||||||
if sudo chsh -s fish "$USER"
|
if sudo chsh -s fish "$USER"; then
|
||||||
then
|
|
||||||
log "Shell $1 installé pour $USER."
|
log "Shell $1 installé pour $USER."
|
||||||
else
|
else
|
||||||
log "Echec lors de l'installation du shell $1 pour l'utilisateur $USER."
|
log "Echec lors de l'installation du shell $1 pour l'utilisateur $USER."
|
||||||
@@ -271,12 +250,10 @@ function ensure_git_folder_installed_for_user() {
|
|||||||
|
|
||||||
local full_url="https://github.com/$git_path"
|
local full_url="https://github.com/$git_path"
|
||||||
|
|
||||||
if [[ -d "$repo_dir" ]]
|
if [[ -d "$repo_dir" ]]; then
|
||||||
then
|
|
||||||
log "Dossier $repo_dir existant, mise à jour..."
|
log "Dossier $repo_dir existant, mise à jour..."
|
||||||
|
|
||||||
if git -C "$repo_dir" pull --quiet
|
if git -C "$repo_dir" pull --quiet; then
|
||||||
then
|
|
||||||
log "Dépôt $repo_dir mis à jour."
|
log "Dépôt $repo_dir mis à jour."
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
@@ -287,8 +264,7 @@ function ensure_git_folder_installed_for_user() {
|
|||||||
|
|
||||||
log "Dépôt $repo_dir innexistant, installation..."
|
log "Dépôt $repo_dir innexistant, installation..."
|
||||||
|
|
||||||
if git clone --quiet "$full_url" "$repo_dir"
|
if git clone --quiet "$full_url" "$repo_dir"; then
|
||||||
then
|
|
||||||
log "Dépôt cloné avec succès dans $repo_dir."
|
log "Dépôt cloné avec succès dans $repo_dir."
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
@@ -303,12 +279,10 @@ function ensure_git_folder_installed_for_root() {
|
|||||||
|
|
||||||
local full_url="https://github.com/$git_path"
|
local full_url="https://github.com/$git_path"
|
||||||
|
|
||||||
if sudo test -d "$repo_dir"
|
if sudo test -d "$repo_dir"; then
|
||||||
then
|
|
||||||
log "Dossier $repo_dir existant, mise à jour..."
|
log "Dossier $repo_dir existant, mise à jour..."
|
||||||
|
|
||||||
if sudo git -C "$repo_dir" pull --quiet
|
if sudo git -C "$repo_dir" pull --quiet; then
|
||||||
then
|
|
||||||
log "Dépôt $repo_dir mis à jour."
|
log "Dépôt $repo_dir mis à jour."
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
@@ -319,8 +293,7 @@ function ensure_git_folder_installed_for_root() {
|
|||||||
|
|
||||||
log "Dépôt $repo_dir innexistant, installation..."
|
log "Dépôt $repo_dir innexistant, installation..."
|
||||||
|
|
||||||
if sudo git clone --quiet "$full_url" "$repo_dir"
|
if sudo git clone --quiet "$full_url" "$repo_dir"; then
|
||||||
then
|
|
||||||
log "Dépôt cloné pour l'administrateur avec succès dans $repo_dir."
|
log "Dépôt cloné pour l'administrateur avec succès dans $repo_dir."
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
@@ -334,14 +307,12 @@ function ensure_gnome_setting_set() {
|
|||||||
local setting_key="$2"
|
local setting_key="$2"
|
||||||
local setting_value="$3"
|
local setting_value="$3"
|
||||||
|
|
||||||
if gsettings get "$setting_schema" "$setting_key" > /dev/null 2>&1
|
if gsettings get "$setting_schema" "$setting_key" >/dev/null 2>&1; then
|
||||||
then
|
|
||||||
log "Paramètre $setting_schema déjà paramétré."
|
log "Paramètre $setting_schema déjà paramétré."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! gsettings set "$setting_schema" "$setting_key" "$setting_value"
|
if ! gsettings set "$setting_schema" "$setting_key" "$setting_value"; then
|
||||||
then
|
|
||||||
log "Echec lor de la configuration du paramètre $1."
|
log "Echec lor de la configuration du paramètre $1."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -352,15 +323,13 @@ function ensure_gnome_setting_set() {
|
|||||||
function ensure_mkinitcpio_configured_for() {
|
function ensure_mkinitcpio_configured_for() {
|
||||||
local kernel="$1"
|
local kernel="$1"
|
||||||
|
|
||||||
if sudo mkinitcpio -p "$kernel"
|
if sudo mkinitcpio -p "$kernel"; then
|
||||||
then
|
|
||||||
log "Noyau $kernel installé."
|
log "Noyau $kernel installé."
|
||||||
else
|
else
|
||||||
log "Echec lors de l'installation du noyau $kernel, ne redémarrez surtout pas !"
|
log "Echec lors de l'installation du noyau $kernel, ne redémarrez surtout pas !"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! sudo grub-mkconfig -o /boot/grub/grub.cfg
|
if ! sudo grub-mkconfig -o /boot/grub/grub.cfg; then
|
||||||
then
|
|
||||||
log "Erreur lors de la configuration du noyau dans Grub, ne redemarrez pas !"
|
log "Erreur lors de la configuration du noyau dans Grub, ne redemarrez pas !"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -369,19 +338,63 @@ function ensure_mkinitcpio_configured_for() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ensure_github_cli_authenticated() {
|
function ensure_github_cli_authenticated() {
|
||||||
if gh auth status > /dev/null 2>&1
|
if gh auth status >/dev/null 2>&1; then
|
||||||
then
|
|
||||||
log "Déjà connecté à GitHub CLI."
|
log "Déjà connecté à GitHub CLI."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log "Déconnecté de GitHub CLI, connexion..."
|
log "Déconnecté de GitHub CLI, connexion..."
|
||||||
|
|
||||||
if ! gh auth login
|
if ! gh auth login; then
|
||||||
then
|
|
||||||
log "Echec d'authentification à GitHub CLI."
|
log "Echec d'authentification à GitHub CLI."
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
log "Connecté à GitHub CLI avec succès."
|
log "Connecté à GitHub CLI avec succès."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ensure_graphics_packages_installed() {
|
||||||
|
ensure_package_is_installed pciutils
|
||||||
|
log "Détection du matériel graphique..."
|
||||||
|
|
||||||
|
local vendor
|
||||||
|
local lspci_output
|
||||||
|
lspci_output=$(lspci | grep -i 'vga\|display')
|
||||||
|
|
||||||
|
if echo "$lspci_output" | grep -iq "NVIDIA"; then
|
||||||
|
vendor="NVIDIA"
|
||||||
|
elif echo "$lspci_output" | grep -iq "AMD\|ATI"; then
|
||||||
|
vendor="AMD"
|
||||||
|
elif echo "$lspci_output" | grep -iq "Intel"; then
|
||||||
|
vendor="Intel"
|
||||||
|
else
|
||||||
|
log "Impossible de détecter le fournisseur de la carte graphique. Aucun paquet graphique ne sera installé."
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
log "Fournisseur de carte graphique détecté : $vendor"
|
||||||
|
|
||||||
|
case $vendor in
|
||||||
|
"AMD")
|
||||||
|
log "Installation des paquets pour AMD..."
|
||||||
|
ensure_package_is_installed xf86-video-amdgpu &&
|
||||||
|
ensure_package_is_installed vulkan-radeon &&
|
||||||
|
ensure_package_is_installed libva-mesa-driver &&
|
||||||
|
ensure_package_is_installed mesa-vdpau &&
|
||||||
|
ensure_package_is_installed amd-ucode
|
||||||
|
;;
|
||||||
|
"Intel")
|
||||||
|
log "Installation des paquets pour Intel..."
|
||||||
|
ensure_package_is_installed xf86-video-intel &&
|
||||||
|
ensure_package_is_installed vulkan-intel &&
|
||||||
|
ensure_package_is_installed intel-ucode &&
|
||||||
|
ensure_package_is_installed libva-intel-driver
|
||||||
|
;;
|
||||||
|
"NVIDIA")
|
||||||
|
log "Installation des paquets pour NVIDIA..."
|
||||||
|
ensure_package_is_installed nvidia &&
|
||||||
|
ensure_package_is_installed nvidia-utils &&
|
||||||
|
ensure_package_is_installed nvidia-settings
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user