#!/bin/sh
PATH=/usr/local/bin:/usr/bin:/bin
export PATH
PORCH=B3
PUMPKIN=B2
WINDOW=B4

if lockfile -! -r 0 /tmp/treater.lock ; then
    echo locked
    exit 0
fi

play -q /usr/local/lib/way_scaryR.wav &
heyu off ${PORCH}
#heyu on ${WINDOW}
heyu bright ${PUMPKIN} 22
sleep 2
heyu dim ${PUMPKIN} 22
heyu on ${PORCH}
#heyu off $(WINDOW)

rm -f /tmp/treater.lock