#!/bin/sh # install-1.2.sh # David Rowe 19 Feb 2007 # # Test script to automate installation and testing of oslec, run # from oslec/kernel. # # usage: $install-1.2 /path/to/just/above/zaptel # $install-1.2 ~ # # Copyright David Rowe 2007 # This program is distributed under the terms of the GNU General Public License # Version 2 if [ $# -ne 1 ] || [ ! -d $1 ]; then echo "usage: install-1.2 /path/to/zaptel" exit fi echo $1 PATCH_DIR=`pwd` echo $PATCH_DIR killall -9 asterisk rmmod wctdm zaptel oslec make clean make insmod oslec.o cd $1 rm -Rf zaptel-1.2.13 ls -l zaptel-1.2.13.tar.gz tar xvzf zaptel-1.2.13.tar.gz cd zaptel-1.2.13 patch -p1 < $PATCH_DIR/zaptel-1.2.13.patch make insmod zaptel.o dmesg | grep zaptel insmod wctdm.o ./ztcfg asterisk