summaryrefslogtreecommitdiffstats
path: root/brltty/brltty
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
commit3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch)
tree819b14ab0377fe2054fe59866669d904e9e0b4b5 /brltty/brltty
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip
split de git pakxe et NuTyX-extra
Diffstat (limited to 'brltty/brltty')
-rw-r--r--brltty/brltty32
1 files changed, 32 insertions, 0 deletions
diff --git a/brltty/brltty b/brltty/brltty
new file mode 100644
index 000000000..ce2f5b6dc
--- /dev/null
+++ b/brltty/brltty
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+daemon_name=brltty
+
+. /etc/sysconfig/rc
+. ${rc_functions}
+. /etc/conf.d/$daemon_name.conf
+
+case "$1" in
+ start)
+ boot_mesg "Starting $daemon_name daemon"
+ loadproc /usr/bin/$daemon_name $brltty_args;;
+
+ stop)
+ loadproc "Stopping $daemon_name daemon"
+ killproc $daemon_name;;
+
+ restart)
+ $0 stop
+ sleep 3
+ $0 start
+ ;;
+
+ status)
+ statusproc $daemon_name
+ ;;
+
+ *)
+ echo "usage: $0 {start|stop|restart|status}"
+esac
+
+exit 0