run-postinsts: remove the init script after a clean start-up
authorChen Qi <Qi.Chen@windriver.com>
Mon, 13 Jan 2014 04:59:42 +0000 (23:59 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Jan 2014 00:52:34 +0000 (00:52 +0000)
commit08bc7ca8721584909bb609355963d65210a4c273
tree428e30fdfd7411c3e5f7f8928443e793e9e40933
parenteddf8bb9864712647d6ede1b4cbeababf908f829
run-postinsts: remove the init script after a clean start-up

If we enable ipk/deb package back-end, and we have 'package-management'
in our IMAGE_FEATURES, then the /etc/rcS.d/S99run-postinsts would
still exist in our system after a clean start-up.

The initial design for run-postinsts requires the related init script
to be removed if there's no more post-install script left in the system.

This patch fixes this problem.

[YOCTO #5718]

(From OE-Core rev: 08a2f48cb95256c6d44c8574949fabafe1466969)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts