Hi,
I have a problem with finish script. After pkgpatch successfully
installed rest of finish script do not execute. The following is
my finish script. Have tried many changes the problem is atill
existed. I think there is something to do with dir /a. Please help.
#!/usr/bin/sh
echo 'Starting the finish2.sh ...'
echo 'Starting to install patch files from /8_Recommended ...'
BASEDIR="/a"
MNT="/mnt"
mount -f nfs nnn.nnn.nn.nn:/export/home/8_Recommended ${BASEDIR}${MNT}
/usr/sbin/patchadd -R ${BASEDIR} -u -d -M ${BASEDIR}${MNT} patch_order
echo 'End of Solaris's patch installation. ...'
sed -e 's/CONSOLE/#CONSOLE/' /a/etc/default/login
touch /a/etc/notrouter
touch /a/etc/issue
cp -p /a/etc/profile /a/etc/profile.orig
cp -p /a/etc/system /a/etc/system.orig
mkdir -p /a/opt/local/bin
ln -s /a/opt/local /a/usr/local
ln -s /a/usr/bin/bash /a/usr/local/bin/bash
echo "dba::26:linus" >> /a/etc/group
umount ${BASEDIR}${MNT}
echo 'End of the finish2.sh ...'