Quand l'idée de mettre à jour me prend, il faut que je me tape le téléchargement (souvent 30mn) et évidemment je suis pressé...
J'ai écrit un petit script qui vérifie toutes les nuits si j'ai la dernière version, et qui la télécharge si ce n'est pas le cas:
Code : Tout sélectionner
#!/bin/bash
uaFull="-U s-tools/sgfxi-data.tool-data"
smxi_drivers="http://smxi.org/sg/data/sg-drivers-23"
wget $uaFull -T 3 -t 2 -qO - $smxi_drivers | grep -iA 1 'Nvidia Beta Drivers' | grep 'DEFAULT' > /tmp/nvidia_beta_latest
Last=$(awk '{print $2}' /tmp/nvidia_beta_latest)
rm /tmp/nvidia_beta_latest
Last_RUN="NVIDIA-Linux-x86_64-$Last.run"
if test -f /usr/src/sgfxi-downloads/$Last_RUN; then echo "Le RUN NVIDIA existe";fi
echo "Le RUN NVIDIA n'existe pas"
Cible="ftp://download.nvidia.com/XFree86/Linux-x86_64/$Last/$Last_RUN"
cd /usr/src/sgfxi-downloads
wget -c $Cible
exit 0