]> code.ossystems Code Review - openembedded-core.git/commit
irda-utils: restart irda daemon correctly
authorQiang Chen <qiang.chen@windriver.com>
Wed, 30 Oct 2013 09:12:29 +0000 (17:12 +0800)
committerSaul Wold <sgw@linux.intel.com>
Fri, 1 Nov 2013 06:57:03 +0000 (23:57 -0700)
commit39f266138b972b550979909b235a5779828d7d89
tree71dc997c8be41a9978af3c30a91273baac517003
parent48067c2093e397255e41b0222da3b7612f1458a7
irda-utils: restart irda daemon correctly

irattach init script restart faulty logic prevents irda daemon
from restart correctly.

root@qemu0:~# /etc/init.d/irattach restart
Restarting IrDA: Terminated
root@qemu0:~# ps aux | grep irattach
root       541  0.0  0.2   2400   612 ttyS0    S+   09:05   0:00 grep irattach

As above shows, irattach not started after executing restart command.
This commit changed the restart command logic: firstly stop, then
start.
Prompt telling user irattach start successfully or failure also
added.

Signed-off-by: Qiang Chen <qiang.chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init