#!/bin/sh # #ident "@(#)postinstall 1.56 06/09/99 SMI" # # Copyright 06/09/99 Sun Microsystems, Inc. All Rights Reserved # # Postinstall script for package: SUNWmhs1d # # Exit codes for installation scripts e_ok=0 e_fatal=1 # stop installation on this exit e_warning=2 # Installation will go on. e_int=3 # Interrupted. Stop installation e_reboot=10 # User must reboot after installation of all selected packages e_rebootnow=20 # User must reboot right after installation of current package # To be added to one of the single-digit exit code above AWK=/usr/bin/awk ECHO=/usr/bin/echo GREP=/usr/bin/grep PS=/usr/bin/ps WC=/usr/bin/wc MV=/usr/bin/mv LN=/usr/bin/ln # Trap interrupt trap `exit $e_int` 15 # # Restore a previous configuration if needed # if [ "$RESTORECONF" != "" ] then if [ -d $RESTORECONF ] then (cd $RESTORECONF; cp dsradiusd.conf $ETCDIR/current) (cd $RESTORECONF; cp dictionary $ETCDIR/current) (cd $RESTORECONF; cp acctattr $ETCDIR/current) (cd $RESTORECONF/mapping; cp radius.mapping $ETCDIR/current/mapping) echo $RESTORECONF configuration restored under $ETCDIR/current fi fi # # # SNMP # # update the snmp master agent configuration # RSRC=/etc/snmp/conf/dsnmprad.rsrc /bin/sed "s!!$BASEDIR!" $RSRC >$RSRC.tmp /bin/mv $RSRC.tmp $RSRC # # This should read the current config first # if [ $INSTALL_SNMP_AGENT -ne 0 ] then echo "Please wait ..." PATH="$BASEDIR/SUNWconn/sbin:$PATH" dsnmpcfg install echo "" echo "The product contains an SNMP agent:" #echo "\tA LDAP Server Agent (dsnmpserv)" echo "\tA RADIUS Server Agent (dsnmprad)" echo "" echo "You can configure it later by typing:" echo "\t$BASEDIR/SUNWconn/sbin/dsnmpcfg configure" echo "" fi echo "" echo "Installing Radius Console ...." echo "" echo "To register the Radius console to an existing administration server" echo "type :" echo "\tcd $BASEDIR/SUNWconn/ldap/sbin; ./setup_rad" echo "" # # Inform the system of installed files echo "Updating system information" installf -f -c none $PKGINST || exit $e_warning # # Happy End exit $e_ok