From 7ea257e0004a4047849b94f4f30e0ed72c4352fb Mon Sep 17 00:00:00 2001 From: Artem Prilutskiy Date: Tue, 2 Aug 2016 08:33:03 +0300 Subject: [PATCH] Forgot to add readme to update --- OpenWRT/init.d/cronosagent | 16 +++++++--------- OpenWRT/readme.txt | 1 + 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/OpenWRT/init.d/cronosagent b/OpenWRT/init.d/cronosagent index 9ff316f..9d9c2e0 100644 --- a/OpenWRT/init.d/cronosagent +++ b/OpenWRT/init.d/cronosagent @@ -1,14 +1,12 @@ #!/bin/sh /etc/rc.common - + START=10 STOP=15 -start() { - echo start - # commands to launch application -} - -stop() { - echo stop - # commands to kill application +start() { + /opt/CronoSagent/cronosagent.sh 6 +} + +stop() { + killall cronosagent } diff --git a/OpenWRT/readme.txt b/OpenWRT/readme.txt index a57b8f9..eabcdd2 100644 --- a/OpenWRT/readme.txt +++ b/OpenWRT/readme.txt @@ -1,3 +1,4 @@ /usr/lib/lua/luci/controller/cronosagent.lua /usr/lib/lua/luci/model/cbi/cronosagent/configure.lua /etc/config/cronosagent +/etc/init.d/cronosagent