#!/bin/sh #pragma ident "@(#)postinstall 1.3 99/06/09 SMI" # # Copyright (c) 1998,1999 by Sun Microsystems, Inc. # All rights reserved. # # # This script only exists for the purpose fixing an install where # the user selected no configuration. # target=$PKG_INSTALL_ROOT/etc/inet/inetd.conf tmp=/tmp/k$$ inetd_prefix="#SEAM " if [ "$INETD_FIX_EDIT" -eq "1" ] then grep '^#SEAM ' $target > /dev/null 2>&1 if [ $? -ne 0 ] then exit 0 fi cat $target | sed "s/^ftp[ ]/# SUNWkr5sv # &/" | sed "s/^telnet[ ]/# SUNWkr5sv # &/" | sed "s/^#SEAM //" > $tmp if [ $? = 0 ] then cp $tmp $target rm -f $tmp else echo printf "`gettext 'Configuration of %s failed.'`\n" $target echo rm -f $tmp exit 1 fi fi exit 0