#!/bin/sh DISPLAY_HOME="/opt/menus/demo" DISPLAY_TIME=5 while [ 1 ] do ### cycle through FV displays in a given directory ### for DISP in `/usr/bin/ls -1 $DISPLAY_HOME/*.fdf` do ### send display to screen ### /usr/local/pref -AW5101 dmcmd $DISP sleep $DISPLAY_TIME ### exit if display on screen is different than the called display ### if [ `/usr/local/pref -AW5101 ST0` != $DISP ]; then exit fi done done