#!/bin/sh . /etc/rc.config bootstep=$1 bootsteps=$2 glcdpath=/etc/graphlcd/$GRAPHLCD_TYPE showbootstep.graphlcd.bak $bootstep $bootsteps if [ -z "$(ps | grep runvdr)" ]; then if [ "$bootsteps" != "$DOWNSTEPS" -o "$GRAPHLCD_SHOW_TIMERS" != "1" ]; then showpic -c /etc/graphlcd.conf $VDR_PLUGIN_ARGS_graphlcd $glcdpath/$(ls $glcdpath | head -n $(( $(ls $glcdpath | wc -l) * $bootstep / ( ${bootsteps:-100} ) )) | tail -n1 ) >/dev/null fi fi