#!/bin/bash if ! [ -d isup-2.8.2 ] && [ -f backup_gateway ] ; then echo "ERROR: install script called outside of its own directory" exit 1 fi if ! diff backup_gateway /usr/bin/backup_gateway &>/dev/null ; then cp backup_gateway /usr/bin/ fi if ! which isup &>/dev/null ; then cd isup-2.8.2 ./configure make && make install #cleaning up: make clean rm __environment.c config.log __environment.h config.h isdown Makefile config.status isup.debug fi