From 5f010c1e3741083ffd7c9c2647a6acc74efa8b66 Mon Sep 17 00:00:00 2001 From: Artem Prilutskiy Date: Fri, 5 Aug 2016 20:15:53 +0300 Subject: [PATCH] Added stuff to OpenWRT --- cronosagent.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cronosagent.sh b/cronosagent.sh index 37bb4d5..54f2110 100755 --- a/cronosagent.sh +++ b/cronosagent.sh @@ -1,5 +1,11 @@ #!/bin/sh +if [ -e /bin/pidof -a -n "$(pidof cronosagent)" ] +then + # Should we do something? + exit +fi + DIRECTORY=$(dirname $0) if [ -f $DIRECTORY/cronosagent.conf ]