#!/bin/sh

apid=$1
stime=$2
FLOWEYE="/usr/ramdisk/bin/floweye"

if [ ${apid} = "" ]; then
	echo "INV_APID"
	exit 1
fi

ledon="pappiw&ledflash&sw=on"
ledoff="pappiw&ledflash&sw=off"

${FLOWEYE} sactask add apidstr="${apid}" debugstr="${ledon}"

sleep ${stime}

${FLOWEYE} sactask add apidstr="${apid}" debugstr="${ledoff}"

echo "done."
