Add support for init.d scripts

Change-Id: Ie65f146fa93e78c79c735033dc9349cda750134e