#!/bin/ash
stty -icanon min 0 time 30
echo "Enter Test Mode ?"
read dotest
if [ "$dotest" = "y" ] ;then
stty sane
echo Test Mode
/usr/bin/test
else
stty sane
echo go...
while true
do
busybox pidof myapp >/dev/null 2 > /dev/null
if [ $? -ne 0 ] ; then
/usr/bin/myapp
echo $(busybox date): webcli restart >> /var/config/system.log
fi
sleep 35
done
fi
fi
阅读(214) | 评论(0) | 转发(0) |