update-rc.d.bbclass: Cleanup package scripts
authorJacob Kroon <jacob.kroon@gmail.com>
Wed, 30 Oct 2013 00:57:11 +0000 (01:57 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Nov 2013 11:09:04 +0000 (11:09 +0000)
commita36ec2f9da36f5eeb778ba808dd2f1cbd164fe8f
treeae162d3236d80e62c11c3e36360ca2265df4d7e1
parent00f2c3a36c21c087cf385ba5d121ac8062155725
update-rc.d.bbclass: Cleanup package scripts

* Add proper preinst script
* Use -n "$D"/-z "$D" checks throughout the scripts
* Only set OPT in cases where its used
* Don't pass unnecessary -f to update-rc.d in postrm script
* Remove outdated comment

(From OE-Core rev: 2d9114aaf130179cb13c20c8b045c2694eca6fd9)

Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/update-rc.d.bbclass