Joined: 03 Apr 2010 Posts: 444 Location: Lincoln, Buenos Aires, Argentina
Posted: Thu 27 Sep 2012, 17:11 Post subject:
script update [beta] Subject description: solo para el puplet puppy-es y betatester
Este script debe ir colocado en /root/my-applications/bin
y de nombre "update".
Luego se ejecuta via terminal
Code:
update
Code:
#!/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
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum