]> code.ossystems Code Review - openembedded-core.git/commit
update-rc.d.bbclass: Fix host/target test in postinst
authorJacob Kroon <jacob.kroon@gmail.com>
Sun, 27 Oct 2013 09:20:29 +0000 (10:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 29 Oct 2013 10:45:19 +0000 (10:45 +0000)
commit7e23557835f756b22b95fa7a1926b5d1d21872c3
tree2c13c3586a76b57a2893499e0ebaa4eeb3106966
parentba93c0faba5f4b5418ecc99da5e04d2ce0642875
update-rc.d.bbclass: Fix host/target test in postinst

When running the postinst script I get a shell warning:

sh: argument expected

and the service is never stopped. This patch fixes the warning
message and stops the service.

Patch v2: Hans Beckérus pointed out that the patch is not correct.
          This version uses the syntax proposed by Hans. I've tested
          that the postinst script works correctly when run on the target,
          both when the init script exists and when it doesn't exist.

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/update-rc.d.bbclass