/[baselayout]/branches/rc-scripts-1_6/sbin/rc
Gentoo

Diff of /branches/rc-scripts-1_6/sbin/rc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 791 Revision 792
385 export BOOT="yes" 385 export BOOT="yes"
386 386
387 start_critical_service() { 387 start_critical_service() {
388 ( 388 (
389 local retval= 389 local retval=
390 local service=$1
390 391
391 source "/etc/init.d/${x}" || eerror "Failed to source /etc/init.d/${x}" 392 source "/etc/init.d/${service}" || eerror "Failed to source /etc/init.d/${service}"
392 retval=$? 393 retval=$?
393 [ "${retval}" -ne 0 ] && return "${retval}" 394 [ "${retval}" -ne 0 ] && return "${retval}"
394 [ -e "/etc/conf.d/${x}" ] && source "/etc/conf.d/${x}" 395 [ -e "/etc/conf.d/${service}" ] && source "/etc/conf.d/${service}"
395 source /etc/rc.conf 396 source /etc/rc.conf
396 397
397 start || eerror "Failed to start /etc/init.d/${x}" 398 start || eerror "Failed to start /etc/init.d/${service}"
398 retval=$? 399 retval=$?
399 400
400 return "${retval}" 401 return "${retval}"
401 ) 402 )
402 } 403 }

Legend:
Removed from v.791  
changed lines
  Added in v.792

  ViewVC Help
Powered by ViewVC 1.1.20