]> git.webhop.me Git - logomask.git/commitdiff
- move /var/plugins/lmask to /bin/logomask.sh ...
authorsvenhoefer <svenhoefer@svenhoefer.com>
Fri, 21 Jun 2013 11:26:05 +0000 (13:26 +0200)
committersvenhoefer <svenhoefer@svenhoefer.com>
Fri, 21 Jun 2013 11:26:05 +0000 (13:26 +0200)
... because this isn't a plugin.
it's just a start/stop script for the logomask binary

remember to align your target!

lmask [deleted file]
logomask.sh [new file with mode: 0755]
starter_logomask.c

diff --git a/lmask b/lmask
deleted file mode 100755 (executable)
index e5d948d..0000000
--- a/lmask
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-if pidof logomask > /dev/null; then
-       touch /tmp/.logomask_kill
-else
-       logomask &
-fi
-exit 0
diff --git a/logomask.sh b/logomask.sh
new file mode 100755 (executable)
index 0000000..e5d948d
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if pidof logomask > /dev/null; then
+       touch /tmp/.logomask_kill
+else
+       logomask &
+fi
+exit 0
index d608a5f661a9c6b147e80a337314ac65284ae6b5..2d3371289db948468e7d5dd724c70a476e688f67 100644 (file)
@@ -38,7 +38,7 @@ int main(void)
                 fprintf(stderr, "[%s.so] forked, executing %s\n", SCRIPT, SCRIPT);
                 for (ret=3 ; ret < 255; ret++)
                        close (ret);
-                        ret = system("/var/plugins/lmask");
+                        ret = system("/bin/logomask.sh");
                         if (ret)
                                 fprintf(stderr, "[%s.so] script return code: %d (%m)\n", SCRIPT, ret);
                         else