0.5.4-0 stable version.
[feedingit] / src / FeedingIt
index d0856d8..a0160e4 100644 (file)
@@ -1,3 +1,13 @@
 #!/bin/sh
-cd /opt/FeedingIt
-python2.5 FeedingIt.py
\ No newline at end of file
+case "$1" in
+update)
+    dbus-send --print-reply --dest='org.maemo.feedingit' --session /org/maemo/feedingit org.maemo.feedingit.Update
+    ;;
+status)
+    dbus-send --print-reply --dest='org.maemo.feedingit' --session /org/maemo/feedingit org.maemo.feedingit.GetStatus
+    ;;
+*)
+    cd /opt/FeedingIt
+    python2.5 FeedingIt.py
+    ;;
+esac
\ No newline at end of file