#!/bin/sh

PKG=SUNWscdhc
BASEDIR=`/usr/bin/pkgparam ${PKG} BASEDIR`


/usr/sbin/removef ${PKG} ${BASEDIR}/${PKG}/bin/toupper ${BASEDIR}/${PKG}/bin/dhcpclient | \
while read file
do
        echo "Remove "${file}
        rm -f ${file}
done

/usr/sbin/removef -f ${PKG} || exit 2

# Restore ${BASEDIR}/${PKG}/bin/toupper

/usr/sbin/installf ${PKG} ${BASEDIR}/${PKG}/bin/toupper

echo "Copy ${BASEDIR}/${PKG}/bin/toupper.sparc to ${BASEDIR}/${PKG}/bin/toupper"
cp ${BASEDIR}/${PKG}/bin/toupper.sparc ${BASEDIR}/${PKG}/bin/toupper

/usr/sbin/installf -f ${PKG} || exit 1

exit 0

