#!/bin/sh
if /usr/local/quickpet_precise/checks/libc6-updated
then
`xmessage -center -bg "#79FF27" -fg "#000000" "your libc6 has already been updated
Ubuntu EGLIBC 2.19-0ubuntu6.7 16-02-2016"`
else
Xdialog --title "glibc upgrade" --stdout --yesno "On Feb 16th 2016 a vulnerability was found in glibc library that
could pose a security risk.  

Whilst this update has been tested, updating glibc is a bit risky 
and could break your puppy if it fails!!

Therefore, you are advised to backup your savefile or 
savefolder before proceeding!

To backup a savefolder close all applications and drag & drop
the savefolder onto the zip icon on the desktop.

To backup a savefile search for pupsavehotbackup on the forum.
--------------------------------------------------------------



Click 'YES' to upgrade  
'NO' to cancel and upgrade later


" 30 60

case $? in

1)
		
		`xmessage -center -bg "#79FF27" -fg "#000000" "this wizard is available in menu>>setup>>glibc upgrade"`
		exit
		;;
0)
		petget http://distro.ibiblio.org/puppylinux/pet_packages-tahr/libc6_2.19-0ubuntu6.7+libstcd++6.0.20.pet
		echo "#!/bin/sh" > /usr/local/quickpet_precise/checks/libc6-updated
		chmod a+x /usr/local/quickpet_precise/checks/libc6-updated &
		rm /usr/share/applications/glibc_upgrade.desktop &
		fixmenus; jwm -reload &
		`xmessage -center -bg "#79FF27" -fg "#000000" "glibc updated"`
        rxvt -hold -e /lib/libc-2.19.so		;;
	esac

fi
