/[baselayout]/trunk/sh/rc-functions.sh
Gentoo

Diff of /trunk/sh/rc-functions.sh

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

Revision 2547 Revision 2612
4has_addon() { 4has_addon() {
5 [ -e "${RC_LIBDIR}/addons/$1.sh" ] 5 [ -e "${RC_LIBDIR}/addons/$1.sh" ]
6} 6}
7 7
8import_addon() { 8import_addon() {
9 if has_addon "$1" ; then 9 has_addon "$1" || return 1
10 . "${RC_LIBDIR}/addons/$1.sh" 10 . "${RC_LIBDIR}/addons/$1.sh"
11 return 0
12 fi
13 return 1
14} 11}
15 12
16start_addon() { 13start_addon() {
17 ( import_addon "$1-start" ) 14 ( import_addon "$1-start" )
18} 15}

Legend:
Removed from v.2547  
changed lines
  Added in v.2612

  ViewVC Help
Powered by ViewVC 1.1.20