#!/bin/sh #------------------------------------------------------------------------------ # /tmp/preinstall.sh - Setup for # # Copyright (c) 2004 # # Creation: # Last Update: # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #------------------------------------------------------------------------------ package='' ### we nedd eisfair version 1.0.4 or later version=`cat /etc/version` if [ "$version" = "1.0" -o "$version" = "1.0.3" ] then echo echo colecho "The version of eisfair must be 1.0.4 or higher." br x br colecho "Please update your eisfair system first." br x br echo echo exit 1 fi ### deinstall old version if [ -f "/var/install/deinstall/$package" ] then /var/install/deinstall/$package update fi ### custom preinstall goes here... exit 0