| … | |
… | |
| 118 | if in_runlevel "${myservice}" "${BOOTLEVEL}" || \ |
118 | if in_runlevel "${myservice}" "${BOOTLEVEL}" || \ |
| 119 | in_runlevel "${myservice}" "${mylevel}" |
119 | in_runlevel "${myservice}" "${mylevel}" |
| 120 | then |
120 | then |
| 121 | # Only worry about net.* services if this is the last one running, |
121 | # Only worry about net.* services if this is the last one running, |
| 122 | # or if RC_NET_STRICT_CHECKING is set ... |
122 | # or if RC_NET_STRICT_CHECKING is set ... |
| 123 | if is_net_up ; then |
123 | if ! is_net_up ; then |
| 124 | mydeps="net" |
124 | mydeps="net" |
| 125 | fi |
125 | fi |
| 126 | fi |
126 | fi |
| 127 | |
127 | |
| 128 | mydeps="${mydeps} ${myservice}" |
128 | mydeps="${mydeps} ${myservice}" |
| … | |
… | |
| 229 | $(valid_iuse "${myservice}")" |
229 | $(valid_iuse "${myservice}")" |
| 230 | fi |
230 | fi |
| 231 | |
231 | |
| 232 | # Start dependencies, if any |
232 | # Start dependencies, if any |
| 233 | for x in ${startupservices} ; do |
233 | for x in ${startupservices} ; do |
| 234 | if [[ ${x} = "net" && ${NETSERVICE} != "yes" ]] ; then |
234 | if [[ ${x} = "net" && ${NETSERVICE} != "yes" ]] && ! is_net_up ; then |
| 235 | local netservices="$(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*") \ |
235 | local netservices="$(dolisting "/etc/runlevels/${BOOTLEVEL}/net.*") \ |
| 236 | $(dolisting "/etc/runlevels/${mylevel}/net.*")" |
236 | $(dolisting "/etc/runlevels/${mylevel}/net.*")" |
| 237 | |
237 | |
| 238 | for y in ${netservices} ; do |
238 | for y in ${netservices} ; do |
| 239 | mynetservice="${y##*/}" |
239 | mynetservice="${y##*/}" |