summaryrefslogtreecommitdiff
path: root/community/inputattach/inputattachctl
diff options
context:
space:
mode:
Diffstat (limited to 'community/inputattach/inputattachctl')
-rwxr-xr-xcommunity/inputattach/inputattachctl14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/inputattach/inputattachctl b/community/inputattach/inputattachctl
new file mode 100755
index 000000000..05dfa4af5
--- /dev/null
+++ b/community/inputattach/inputattachctl
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+. /etc/conf.d/inputattach
+
+case "$1" in
+ start)
+ for i in "${IAPARAMS[@]}"; do
+ /usr/bin/inputattach --daemon $i || exit 1
+ done
+ ;;
+ stop)
+ killall inputattach || exit 1
+ ;;
+esac