Fixed init.d support