if [ -f /tmp/away-actions.pid ]; then
oldpid="`cat /tmp/away-actions.pid`"
if kill -0 "$oldpid"; then
if [ -f /tmp/away-actions.pid ]; then
oldpid="`cat /tmp/away-actions.pid`"
if kill -0 "$oldpid"; then
find /tmp -name .tpope_lights -maxdepth 1 -mmin 60 -exec rm {} \;
if [ "$is_away" = 1 -a ! -f /tmp/.tpope_lights ]; then
touch /tmp/.tpope_lights
find /tmp -name .tpope_lights -maxdepth 1 -mmin 60 -exec rm {} \;
if [ "$is_away" = 1 -a ! -f /tmp/.tpope_lights ]; then
touch /tmp/.tpope_lights
ping -c 1 $host >/dev/null && $ssh $host tpope xssc -lock 2>/dev/null &
done
elif [ "$is_away" = 0 -a -f /tmp/.tpope_lights ]; then
ping -c 1 $host >/dev/null && $ssh $host tpope xssc -lock 2>/dev/null &
done
elif [ "$is_away" = 0 -a -f /tmp/.tpope_lights ]; then
-ping -c 1 homer >/dev/null && scp -q "$HOME/.caminfo.deskcam" homer:.caminfo 2>/dev/null
-ping -c 1 sarah >/dev/null && scp -q "$HOME/.caminfo.bedcam" sarah:.caminfo 2>/dev/null
+ping -c 1 lucille >/dev/null && scp -q "$HOME/.caminfo.deskcam" lucille:.caminfo 2>/dev/null
+ping -c 1 buster >/dev/null && scp -q "$HOME/.caminfo.bedcam" buster:.caminfo 2>/dev/null