#!/bin/sh

node=`uname -n| sed -e 's/\([^\.]\)\..*/\1/'`

if [ -z "${ENSTORE_DIR-}" ];then
    echo setup enstore and then do $0
else
    case "${ENSTORE_CONFIG_HOST:-x}" in

	d0en*)  plant=d0
		;;
	stken*) plant=stk
		;;
	*)      plant=$node
		;;
    esac
    echo starting $plant entv display on $DISPLAY
    nice -n 19 python $ENSTORE_DIR/src/entv.py $plant >/dev/null 2>&1 &
fi
