script update [beta]

Post Reply
Message
Author
mama21mama

script update [beta]

#1 Post by mama21mama »

Este script debe ir colocado en /root/my-applications/bin

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
Attachments
update.zip
md5sum 97c00d0ea6e32294efa4ccc6abafc362
(1.25 KiB) Downloaded 272 times

Post Reply