# vim: ft=zsh noet ts=4 sts=4 sw=4 # # confz functions for OpenRC # typeset -g confz_openrc_runlevel typeset -ga confz_openrc_runlevel_deps # find explicit dependencies of OpenRC runlevel confz_openrc_runlevel_find_deps() { [[ -d /etc/runlevels/$1 ]] || die "$0: no such runlevel: ${(qqq)1}" confz_openrc_runlevel_deps+=( $1 ) local d for d in /etc/runlevels/$1/*(N-/); do confz_openrc_runlevel_find_deps $d:A:t done } # get the current OpenRC runlevel confz_openrc_get_runlevel() { confz_openrc_runlevel=$(