#!/bin/ash

# /etc/ring.cmd
# called by RING_SERVER if a modem activity is detected.
#========================================================= 

cat << END

                        ** RING DETECTED !! **

END



# Example 1: call yourself
#--------------------------

sleep 10	# wait 10 sec
echo "calling 03385690862 ..." 
efax -d /dev/modem -s -o0 -iZ -t T03385690862 &
pid=$!
sleep 20	# ringing ... 
kill -1 $pid	# ok, hang-up


# Example 2: remote shutdown 
#--------------------------

# init 6


