source /sbin/functions.sh

need() {
	echo "NEED $*"; return 0
}

use() {
	echo "USE $*"; return 0
}

before() {
	echo "BEFORE $*"; return 0
}

after() {
	echo "AFTER $*"; return 0
}

provide() {
	echo "PROVIDE $*"; return 0
}

parallel() {
	echo "PARALLEL $*"; return 0
}

#*** /etc/init.d/urandom ***

myservice="/etc/init.d/urandom"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need localmount
  	return 0
  }

  depend
)

#*** /etc/init.d/net.lo ***

myservice="/etc/init.d/net.lo"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	use coldplug hotplug pcmcia usb isdn wlan
  
  	local iface=${myservice##*.}
  	[[ $( type -t depend_${iface} ) == "function" ]] && depend_${iface}
  	return 0
  }

  depend
)

#*** /etc/init.d/clock ***

myservice="/etc/init.d/clock"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need localmount
  	return 0
  }

  depend
)

#*** /etc/init.d/netmount ***

myservice="/etc/init.d/netmount"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	local myneed="net"
  	local myuse=""
  
  	local nfsmounts=$(awk '!/^#/ && ($3=="nfs" || $3=="nfs4") && $4 !~ /noauto/ { print $0 }' /etc/fstab)
  
  	if [[ -n ${nfsmounts} ]] ; then
  		myneed="${myneed} portmap"
  		myuse="${myuse} nfs nfsmount"
  	else
  		myuse="${myuse} portmap"
  	fi
  
  	need ${myneed}
  	use ${myuse}
  	return 0
  }

  depend
)

#*** /etc/init.d/consolefont ***

myservice="/etc/init.d/consolefont"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need localmount
  	need keymaps    # sets up terminal encoding scheme
  	after hotplug
  	return 0
  }

  depend
)

#*** /etc/init.d/nscd ***

myservice="/etc/init.d/nscd"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139895323"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	use dns ldap net slapd
  	return 0
  }

  depend
)

#*** /etc/init.d/domainname ***

myservice="/etc/init.d/domainname"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need checkroot hostname
  	before bootmisc
  	return 0
  }

  depend
)

#*** /etc/init.d/gpm ***

myservice="/etc/init.d/gpm"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139887473"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need localmount
  	use hotplug logger
  	return 0
  }

  depend
)

#*** /etc/init.d/numlock ***

myservice="/etc/init.d/numlock"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need localmount
  	return 0
  }

  depend
)

#*** /etc/init.d/hostname ***

myservice="/etc/init.d/hostname"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need checkroot
  	return 0
  }

  depend
)

#*** /etc/init.d/keymaps ***

myservice="/etc/init.d/keymaps"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need localmount
  	return 0
  }

  depend
)

#*** /etc/init.d/rmnologin ***

myservice="/etc/init.d/rmnologin"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need localmount
  	return 0
  }

  depend
)

#*** /etc/init.d/local ***

myservice="/etc/init.d/local"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	after *
  	return 0
  }

  depend
)

#*** /etc/init.d/rsyncd ***

myservice="/etc/init.d/rsyncd"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139875319"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	use net
  	return 0
  }

  depend
)

#*** /etc/init.d/localmount ***

myservice="/etc/init.d/localmount"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need checkfs
  	return 0
  }

  depend
)

#*** /etc/init.d/bootmisc ***

myservice="/etc/init.d/bootmisc"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	use clock hostname
  	need localmount
  	before logger
  	return 0
  }

  depend
)

#*** /etc/init.d/modules ***

myservice="/etc/init.d/modules"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need checkroot hostname
  	use isapnp
  	return 0
  }

  depend
)

#*** /etc/init.d/checkfs ***

myservice="/etc/init.d/checkfs"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	need checkroot modules
  	return 0
  }

  depend
)

#*** /etc/init.d/net.eth0 ***

myservice="/etc/init.d/net.eth0"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	use coldplug hotplug pcmcia usb isdn wlan
  
  	local iface=${myservice##*.}
  	[[ $( type -t depend_${iface} ) == "function" ]] && depend_${iface}
  	return 0
  }

  depend
)

#*** /etc/init.d/checkroot ***

myservice="/etc/init.d/checkroot"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

echo "MTIME 1139902158"

(
  # Get settings for rc-script ...

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }

  # Actual depend() function ...
  depend() {
  	before *
  	return 0
  }

  depend
)

