Filewatcher File Search
FTP Search
  
Directory 
  
Content Search 
   
pkg://afbackup-client_3.3.8.1beta2-2_s390.deb:514902/preinst  info  downloads

#!/bin/sh -e

fix_cruft ()
{
   cat <<.EOF
If you get asked to overwrite your old configuration, please do so! You
can easily reconfigure your system with afserverconfig or
xafserverconfig. The existing status information will not be touched.
.EOF
}

ask_abort ()
{
   cat <<.EOF
You are upgrading from an incompatible version of afbackup-client. You
have to upgrade all your machines to the current version of afbackup and
afbackup-client or you should abort upgrading now.

Do you want to abort? (y/N)
.EOF
   read ANSWER
   case "$ANSWER" in
      y|Y)
	 exit 1
      ;;
   esac
}
      

case "$1" in
    upgrade)
	case "$2" in
	    2.6*)
	        fix_cruft
		ask_abort
	    ;;
	    2*|3.1*|3.3.[1-6]*)
	        ask_abort
	    ;;
        esac    	
    ;;

    install|abort-upgrade)
    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac

Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2009 MARUHN Internet Solutions