# #ident "@(#)preinstall 1.1 95/12/07 SMI" # # Copyright 1995 Sun Microsystems, Inc. All Rights Reserved # # # String to modify when changing of # SUNKpppkx version. VERSION_TO_INSTALL=1 VERSION_STRING=PPP_VERSION BUNDLED_PPP=/usr/kernel/strmod/sparcv9/ppp UNBUNDLED_PPP=/usr/kernel/drv/sparcv9/ppp TMP=`(/bin/strings $BUNDLED_PPP | /usr/bin/grep $VERSION_STRING) 2>/dev/null | /usr/bin/awk '{ print $2 }'` if [ -z "$TMP" ] then TMP=`(/bin/strings $UNBUNDLED_PPP | /usr/bin/grep $VERSION_STRING) 2>/dev/null | /usr/bin/awk '{ print $2 }'` if [ -z "$TMP" ] then TMP="0" fi fi INSTALLED_VERSION=$TMP if [ $INSTALLED_VERSION -gt $VERSION_TO_INSTALL ] then echo "*********************************************************" echo " WARNING WARNING " echo "*********************************************************" echo " " echo " The version of the ppp module installed on your system " echo " ($INSTALLED_VERSION) is newer than the one being installed ($VERSION_TO_INSTALL)." echo " " echo " The older version won't be installed, but you can use " echo " the newer one without any problem. " echo " " echo "*********************************************************" echo " WARNING WARNING " echo "*********************************************************" exit 1 fi