postinstall revision 0ea5e3a571e3da934507bdd32924d11659c70704
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# cycle with milestone/single-user, when upgrading to a system that
0N/A# introduces milestone/sysconfig.
0N/Acat >> $BASEDIR/var/svc/profile/upgrade <<\_CLRSYSID
0N/Aif [ -h $BASEDIR/var/mail.ABCsavedXYZ ] ; then
0N/A rm -fr $BASEDIR/var/mail.ABCsavedXYZ
0N/Aif [ -h $BASEDIR/var/news.ABCsavedXYZ ] ; then
2465N/A rm -fr $BASEDIR/var/news.ABCsavedXYZ
0N/APMTAB=$BASEDIR/etc/saf/tcp/_pmtab
0N/AAUTH_ATTR=$BASEDIR/etc/security/auth_attr
0N/AINITTAB=$BASEDIR/etc/inittab
0N/AVFSTAB=$BASEDIR/etc/vfstab
0N/Acat >> $BASEDIR/var/svc/profile/upgrade <<\_DEL_BIND8
obs_se=/usr/sbin/in.named
svcadm disable -s svc:/network/dns/server:default
svccfg delete svc:/network/dns/server:default
svccfg delete svc:/network/dns/server
SVCCFG_REPOSITORY=$PKG_INSTALL_ROOT/etc/svc/repository.db
if [ -r $PKG_INSTALL_ROOT/etc/svc/volatile/repository_door ]; then
# svc:/network/rpc/keyserv is expected to be off on systems that don't
cat >> $BASEDIR/var/svc/profile/upgrade <<\_CSVC_UPGRADE_2
if [ ! -f /etc/defaultdomain ]; then
svcadm disable network/rpc/keyserv
# On initial install, default to ns_files.xml. The installer will
elif [ ! -r $BASEDIR/var/svc/profile/name_service.xml ]; then
ns_profile=ns_ldap.xml
ns_profile=ns_nisplus.xml
ns_profile=ns_nis.xml
ns_profile=ns_files.xml
ln -s $ns_profile $BASEDIR/var/svc/profile/name_service.xml
# /etc/svc/repository.db was previously packaged but it is now generated
# Solaris audit's internal "enable/disable" state is maintained by
cat >> $BASEDIR/var/svc/profile/upgrade <<\_ENABLE_AUDIT
if [ -f $BASEDIR/var/SUNWcsr-apply-limited-net ]; then
PROFILEDIR=$BASEDIR/var/svc/profile
/usr/sbin/netservices limited