#!/bin/bash

# test to see if phone is active
# if vgetty is running, do nothing

ps -a > /home/phone/sh/proc

if grep -q ttyS4 /home/phone/sh/proc

then

  echo vgetty is on
  
  exit 1

else 

  echo vgetty is off 

#sparrow line
/home/phone/sh/400incoming.sh
#antiterror
/home/phone/sh/411incoming.sh

