Public feed #724301

Etwas

public shellscript v1 · immutable
Raw Edit
·published 2007-10-03 14:10 UTC
rendered paste body
#!/bin/sh# avia-check.sh  v0.32OLDCOUNT=0SECS=1echo "starte avia-check und gehe nun in die schleife rein"while sleep $SECS; do    echo "bin jetzt in while :o"    logger "bin jetzt in while :o"    TUNER=$(pidof kdvb-fe-0:0)    if [ -f /tmp/ecm.info ] && [ -n "$TUNER" ]; then        logger "bin im ersten if :)"        COUNT=$(grep avia$ /proc/interrupts)        if [ "$COUNT" = "$OLDCOUNT" ]; then            logger "fuehre enxreset durch"            /bin/enxreset 1>/dev/null 2>&1            AUDIO=$(/bin/pzapit --getpids | grep '*audio' | cut -b 8)            /bin/pzapit -a $AUDIO            OLDCOUNT=0        else            if [ -n "$(/bin/pzapit --getpids | grep 'video')" ]; then                SECS=1            else                SECS=3            fi            OLDCOUNT=$COUNT        fi    fidone