#!/bin/sh
if /usr/local/quickpet_precise/checks/quickpetfix9
then
rm /usr/local/quickpet_precise/checks/quickpetfix8 &
rm /usr/local/quickpet_precise/checks/quickpetfix7 &
rm /usr/local/quickpet_precise/checks/quickpetfix6 &
rm /usr/local/quickpet_precise/checks/quickpetfix5 &
rm /usr/local/quickpet_precise/checks/quickpetfix4 &
rm /usr/local/quickpet_precise/checks/quickpetfix3 &
rm /usr/local/quickpet_precise/checks/quickpetfix2 &
rm /usr/local/quickpet_precise/checks/quickpetfix1 &
rm /usr/local/quickpet_precise/checks/quickpetfix 
else
rm /usr/local/bin/quickpet &
rm /usr/local/quickpet_precise/small/quickpet &
rm /usr/local/quickpet_precise/big/quickpet &
sleep 1
cp /usr/local/quickpet_precise/checks/quickpet /usr/local/bin/quickpet
cp /usr/local/quickpet_precise/checks/small/quickpet /usr/local/quickpet_precise/small/quickpet 
sleep 1
echo "#!/bin/sh" > /usr/local/quickpet_precise/checks/quickpetfix9
chmod a+x /usr/local/quickpet_precise/checks/quickpetfix9
fi
rm /usr/local/lib/X11/themes/Sarai/desktop48.png &
rm /root/Startup/distrospecsfix &

cp /etc/DISTRO_SPECS /etc/DISTRO_SPECS.bak
exec /usr/local/quickpet_precise/checks/distrospecsfix &
exec /usr/local/petget/service_pack.sh &
sleep 10
rm /etc/DISTRO_SPECS
mv /etc/DISTRO_SPECS.bak /etc/DISTRO_SPECS

fixmenus; jwm -reload