/[baselayout]/trunk/sh/gendepends.sh
Gentoo

Diff of /trunk/sh/gendepends.sh

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

Revision 2679 Revision 2680
31 *.sh) continue ;; 31 *.sh) continue ;;
32 esac 32 esac
33 33
34 SVCNAME=${SVCNAME##*/} 34 SVCNAME=${SVCNAME##*/}
35 ( 35 (
36 rc_c=${SVCNAME%%.*}
37 if [ -n "${rc_c}" -a "${rc_c}" != "${SVCNAME}" ] ; then
38 [ -e /etc/conf.d/"${rc_c}" ] && . /etc/conf.d/"${rc_c}" >&2
39 fi
40 unset rc_c
41
42 [ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}" >&2
43
36 if . /etc/init.d/"${SVCNAME}" ; then 44 if . /etc/init.d/"${SVCNAME}" ; then
37 rc_c=${SVCNAME%%.*}
38 if [ -n "${rc_c}" -a "${rc_c}" != "${SVCNAME}" ] ; then
39 [ -e /etc/conf.d/"${rc_c}" ] && . /etc/conf.d/"${rc_c}"
40 fi
41 unset rc_c
42
43 [ -e /etc/conf.d/"${SVCNAME}" ] && . /etc/conf.d/"${SVCNAME}"
44 45
45 echo "${SVCNAME}" 46 echo "${SVCNAME}"
46 depend 47 depend
47 48
48 # Add any user defined depends 49 # Add any user defined depends

Legend:
Removed from v.2679  
changed lines
  Added in v.2680

  ViewVC Help
Powered by ViewVC 1.1.20