Backout script for downloads prior to June 2
As some of you have already experienced, the Sun Update Connection Preview Release client code that was released through the download center had a problem. The correct version was posted on Thursday 6/2/05 at 5:00PM PST. If you are running a version that was downloaded prior to Thursday, 6/2/05 at 5:00PM PST, you'll need to manually remove the previous packages before installing the correct version.To make this easier, the following script should be used. This script should be run as root and you should first exit the Sun Update Manager application.
- -
#! /bin/ksh
# Generate vars that contains packages and their version numbers
this_platform=`uname -p`
if [ "$this_platform" == "sparc" ]; then
patch1=119574-01
patch2=119107-01
patch3=119788-01
rm_ppror_version=5.0,REV=2005.05.13.16.32
rm_pprou_version=5.0,REV=2005.05.13.16.32
else
patch1=119575-01
patch2=119108-01
patch3=119789-01
rm_ppror_version=5.0,REV=2005.05.13.17.01
rm_pprou_version=5.0,REV=2005.05.13.17.01
fi
showrev -p | grep $patch2 > /dev/null 2>& 1
if [ $? -eq 0 ]; thenrm -f /var/sadm/patch/$patch3/prebackout
patchrm $patch3
fi
showrev -p | grep $patch2 > /dev/null 2>& 1
if [ $? -eq 1 ]; then
echo $patch2 is not installed on your system, exiting...
exit 0
fi
/usr/sbin/cc-client-adm stop > /dev/null 2>& 1
/usr/sbin/cc-client-adm disable > /dev/null 2>& 1
rm -f /var/sadm/patch/$patch2/prebackout
patchrm $patch2
patchrm $patch1
ppror_version=`pkgparam SUNWppror VERSION`
pprou_version=`pkgparam SUNWpprou VERSION`
admin_file=/tmp/admin.quiet.$$
cat << EOF > $admin_file
mail=
instance=overwrite
partial=ask
runlevel=ask
idepend=nocheck
rdepend=nocheck
space=ask
setuid=nocheck
conflict=nocheck
action=nocheck
networktimeout=60
networkretries=3
authentication=quit
keystore=/var/sadm/security
proxy=
basedir=default
EOF
if [ "$ppror_version" == "$rm_ppror_version" ]; then
pkgrm -n -a $admin_file SUNWppror
fi
if [ "$pprou_version" == "$rm_pprou_version" ]; then
pkgrm -n -a $admin_file SUNWpprou
fi
rm $admin_file
exit 0
- -

