support both styles of init script

Change-Id: Ic7d4bd3dece98da086ade94156eca8fdfe2917de
Merge "support both styles of init script"