y de nombre "update".
Luego se ejecuta via terminal
Code: Select all
update
Code: Select all
#!/bin/sh
#270912 instala update de puppy-es...
while [ 1 ];do
LANG=C Xdialog --center --title "Update puppy-es" --icon "/usr/local/lib/X11/pixmaps/archive48.png" --yesno "Hola personita, la version del update que tenemos posiblemente mejore el sistema. Si quiere instalar.\\nClick en el boton 'Yes' para descargar e instalar.\\nNota, si mas tarde desea actualizar solo en terminal ejecute 'update'\\n(se puede instalar posteriormente a través del Gestor de paquetes de Puppy)..." 0 0
if [ $? -eq 0 ];then
mkdir -p /tmp/update
cd /tmp/update
echo -e "#!/bin/sh\nwget --no-cache http://mamalibre.no-ip.org/pub/puppylinux/pet_packages-5/updates_puppy-es.pet" > /tmp/delayedrun_update
chmod 777 /tmp/delayedrun_update
rxvt -bg orange -geometry 80x4 -title "Update puppy-es" -e /tmp/delayedrun_update
echo md5sum
md5sum updates_puppy-es.pet
petget updates_puppy-es.pet > /dev/null 2>&1
rm updates_puppy-es.pet
LANG=C Xdialog --center --title "Update puppy-es" --icon "/usr/local/lib/X11/pixmaps/archive48.png" --msgbox "El update fue descargado\\nReinicie su X" 0 0
else
LANG=C Xdialog --center --title "Update puppy-es" --icon "/usr/local/lib/X11/pixmaps/archive48.png" --msgbox "Lo siento, el update no fue descargado. Intente con el Puppy Package Manager." 0 0
fi
break
done