mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
29
openembedded/packages/irda-utils/files/init
Executable file
29
openembedded/packages/irda-utils/files/init
Executable file
@@ -0,0 +1,29 @@
|
||||
#! /bin/sh
|
||||
|
||||
DESC=irattach
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting $DESC: "
|
||||
irattach /dev/ttyS1 > /dev/null 2>&1 &
|
||||
echo "$NAME."
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping $DESC: "
|
||||
killall irattach > /dev/null 2>&1
|
||||
echo "$NAME."
|
||||
;;
|
||||
restart|force-reload)
|
||||
echo -n "Restarting $DESC: "
|
||||
irattach /dev/ttyS1 > /dev/null 2>&1 &
|
||||
sleep 1
|
||||
killall irattach > /dev/null 2>&1
|
||||
echo "$NAME."
|
||||
;;
|
||||
*)
|
||||
N=/etc/init.d/$NAME
|
||||
echo "Usage: $N {start|stop|restart|force-reload}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user