Fix kernel init.d support