mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-22 19:53:32 +08:00
c17f413438
Add new package: input-event-daemon input-event-daemon - input event handling daemon for linux. [Peter: minor tweaks, use v0.1.3 tag, pass LDFLAGS, combine install step] Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
40 lines
449 B
Bash
Executable File
40 lines
449 B
Bash
Executable File
#! /bin/sh
|
|
|
|
[ -f /usr/bin/input-event-daemon ] || exit 0
|
|
|
|
start() {
|
|
echo -n "Starting input-event-daemon: "
|
|
input-event-daemon
|
|
echo "done"
|
|
}
|
|
|
|
|
|
stop() {
|
|
echo -n "Stopping input-event-daemon: "
|
|
killall input-event-daemon
|
|
echo "done"
|
|
}
|
|
|
|
restart() {
|
|
stop
|
|
start
|
|
}
|
|
|
|
# See how we were called.
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
restart|reload)
|
|
restart
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|reload|restart}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $?
|