add init.d support/add root and common .mk file