]> ToastFreeware Gitweb - gregoa/zavai.git/commitdiff
Run hook script for gsm
authorEnrico Zini <enrico@enricozini.org>
Thu, 11 Mar 2010 11:12:59 +0000 (12:12 +0100)
committerEnrico Zini <enrico@enricozini.org>
Thu, 11 Mar 2010 11:12:59 +0000 (12:12 +0100)
hooks/gsm
src/gsm.vala

index 08c3c1ec94c9c21e1bf94da63a9c60719a8f1b41..c184c8e4dacee90eec6e5d806765530813118a87 100755 (executable)
--- a/hooks/gsm
+++ b/hooks/gsm
@@ -6,7 +6,7 @@ case "$1" in
        ;;
        # Run, blocking until the process ends
        run)
-               sleep 10
+               exec sleep 10
        ;;
        *)
                echo "Usage: $0 {run|status}." >&2
index c5357f50f545cc83b0e6e38919128ba8b8049235..177f166b8cc38af96276a2a6c619680eb2aed0b4 100644 (file)
@@ -43,7 +43,7 @@ public class GSM: zavai.Service
     {
         if (started) return;
 
-        string command = "sleep 10";
+        string command = zavai.config.homedir + "/gsm run";
         zavai.log.info("Run program: " + command);
         string[] args = command.split(" ");
         try {