expedite: use a tar.bz2 tarball to save bandwitdh and disk space
[buildroot-gz.git] / package / lirc-tools / S25lircd
blob7a0ec2f627d5cca22e69f1a6e18652dc07d3614f
1 #!/bin/sh
3 # Start lirc
5 # Support for remotes - Add remotes to /etc/lirc/lircd.conf.d/
8 start() {
9 printf "Starting lirc: "
10 mkdir -p /var/run/lirc
11 ln -sf /var/run/lirc/lircd /dev/lircd
12 start-stop-daemon -b -S -q -m -p /var/run/lirc.pid --exec /usr/sbin/lircd -- -n -O /etc/lirc/lirc_options.conf
13 echo "OK"
16 stop() {
17 printf "Stopping lirc: "
18 start-stop-daemon -K -q -p /var/run/lirc.pid
19 echo "OK"
22 case "$1" in
23 start)
24 start
26 stop)
27 stop
29 restart|reload)
30 stop
31 start
34 echo "Usage: $0 {start|stop|restart}"
35 exit 1
36 esac
38 exit $?