From 49d7eff0e98fb601c152858e25ca77d5b0ca0281 Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Thu, 6 May 2010 01:48:35 -0400 Subject: matrix-tui: add the Matrix TUI (Text UI) launcher app (from Arago) Signed-off-by: Denys Dmytriyenko --- recipes/ti/matrix-tui/init | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 recipes/ti/matrix-tui/init (limited to 'recipes/ti/matrix-tui') diff --git a/recipes/ti/matrix-tui/init b/recipes/ti/matrix-tui/init new file mode 100755 index 0000000000..e5813825dc --- /dev/null +++ b/recipes/ti/matrix-tui/init @@ -0,0 +1,24 @@ +#! /bin/sh + +matrixtui="/usr/bin/matrix_tui" +TUI_OPTS="/usr/share/matrix/xml/matrix.xml" + +test -x "$matrixtui" || exit 0 + +case "$1" in + start) + echo -n "Starting Matrix TUI application" + start-stop-daemon --start --quiet --background --pidfile /var/run/matrix-tui.pid --exec $matrixtui -- $TUI_OPTS + echo "." + ;; + stop) + echo -n "Stopping Matrix TUI application" + start-stop-daemon --stop --quiet --pidfile /var/run/matrix-tui.pid + echo "." + ;; + *) + echo "Usage: /etc/init.d/matrix-tui {start|stop}" + exit 1 +esac + +exit 0 -- cgit v1.2.3