i was trying to set oscam check script for dreambox 800se with newnigma 2 image.. script is as follow:
but 'if' statement doesnot check whether oscam is running or stop...can anyone please help or if anyone has working script for newnigma2 image.
#!/bin/sh
OSCAM_START="/usr/script/oscam.emu start";
process=`ps auxwww | grep oscam | grep -v grep | awk '{print $1}'`
if [ -z "$process" ]; then
echo "$(date) Oscam not running" ;
$OSCAM_START
else
echo "$(date) Oscam is running" ;
fi
OSCAM_START="/usr/script/oscam.emu start";
process=`ps auxwww | grep oscam | grep -v grep | awk '{print $1}'`
if [ -z "$process" ]; then
echo "$(date) Oscam not running" ;
$OSCAM_START
else
echo "$(date) Oscam is running" ;
fi