Gentoo's init scripts are GPL infected so they need to be rewritten anyway. They are mostly POSIX sh though, aside from some occasional use of local ...