Files
poky/openembedded/packages/irda-utils/files/init
Richard Purdie 4b46c1f6e8 Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
2005-08-31 10:45:47 +00:00

585 B
Executable File

#! /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