#ident @(#)@(#)pt7764j/point_patches/110063-04/ftSPARC/postinstall	1.1	Last changed 00/08/22
#
# Copyright (c) 2000 Sun Microsystems Inc.
# All rights Reserved.
#
# postinstall script to rebuild configd and abdicate to the new configd process
#
#
# First save any irreplaceable files in case of patch backout
/usr/sbin/tar cvf /var/sadm/patch/110063-04/save/configd.tar /etc/cms/bin/configd
/usr/sbin/tar cvf /var/sadm/patch/110063-04/save/system.tar /etc/cms/src/system.*
#
# Now carry out operations for building new configd and abdicating
#
/usr/bin/mkdir -p /etc/cms/sysdef_modules.new
/usr/bin/cp /etc/cms/sysdef_modules/* /etc/cms/sysdef_modules.new
/usr/bin/rm -f /etc/cms/src/system.o /etc/cms/src/system.c
( cd /etc/cms/src ;  /usr/ccs/bin/make ; /usr/ccs/bin/make abdicate )

echo "Reboot the system now !!"
