#!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 depend() { if [ -e /lib/librc.so ]; then # on baselayout-1 this causes # dependency-cycles with checkroot (before *) provide dev need sysfs before checkfs fsck fi } start() { if [ ! -e /lib/librc.so ]; then eerror "The $SVCNAME init-script is written for baselayout-2!" eerror "Please do not use it with baselayout-1!". return 1 fi start_addon udev || return 1 einfon "Device initiated services:${HILITE}" local svc= for svc in "${RC_SVCDIR}"/coldplugged/*; do [ -x "${svc}" ] || continue printf " ${svc##*/}" done printf "\n" return 0 } stop() { stop_addon udev }