#!/bin/sh # ident "@(#)postinstall 1.18 99/05/19 SMI" PATH=/bin:/sbin:/usr/sbin PROGNAME=`basename "$0"` OSVER=`uname -r` case "$PROGNAME" in postinstall|smc_add*) flag=-R; action="registered with the Solaris Management Console" ;; preremove|smc_del*) flag=-U; action="unregistered from the Solaris Management Console" # Two files get created by the DNS Server wizard, and need to be deleted # before the package will remove properly. rm -f $BASEDIR/$PRODUCTDIR/dnsserver/backend/lib/.dont_generate_revmaps rm -f $BASEDIR/$PRODUCTDIR/dnsserver/backend/lib/.savecfg ;; esac WIZDIR="$BASEDIR/$PRODUCTDIR" WIZICON="$WIZDIR/lib/mcwz/icons/smc_config_wizard.gif" SMCAPPADM="/usr/sadm/smc/lib/smcappadm" if [ -x $SMCAPPADM ]; then $SMCAPPADM $flag -n "Shutdown/Restart Computer" -b "$WIZDIR/bin/shutdown" -t XAPP -c "Infrastructure" -p root -i $WIZICON $SMCAPPADM $flag -n "Change Root Password" -b "$WIZDIR/bin/password" -t XAPP -c "Usergroup" -p root -i $WIZICON $SMCAPPADM $flag -n "Network Interface" -b "$WIZDIR/bin/netconfig" -t XAPP -c "Connectivity" -p root -i $WIZICON $SMCAPPADM $flag -n "DNS Client" -b "$WIZDIR/bin/dnsclient" -t XAPP -c "Connectivity" -p root -i $WIZICON $SMCAPPADM $flag -n "Default Routing" -b "$WIZDIR/bin/router" -t XAPP -c "Connectivity" -p root -i $WIZICON if [ -x /usr/sadm/bin/dnsserver ]; then $SMCAPPADM $flag -n "DNS Server" -b "$WIZDIR/bin/dnsserver" -t XAPP -c "Software" -p root -i $WIZICON fi else echo "These wizards cannot be $action." echo "You must install the Solaris Management Console from SEAS 3.0 first." fi