replace update-rc.d and invoke-rc.d to support OpenRC
add transit script to fix shutdown and reboot issue