#! /bin/sh
#
# WakeUp	This shell script shuts down DipEye and makes 3 calling
#		attempts to my voice line to try to Wake me Up!
#
# Version:	@(#)/usr/local/bin/wakeup	0.20	11/01/94
#
# Author:	Adam Dace, <glide@mcs.com>

DIP="/sbin/dip"
DIPKILL="/home/thekind/bin/dipkill"
HOME_DIP="/home/thekind/bin/home.dip"

declare -i COUNTER
COUNTER=1

# Kill off dip, and assorted programs if they are active.
$DIPKILL

# Repeatedly call my voice line 3 times in a row
until [ $COUNTER -eq 3 ]
do
  $DIP $HOME_DIP &>/dev/null
  sleep 15s
  $DIPKILL
  COUNTER=COUNTER+1
done
