#!/sbin/runscript # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { if [[ "${UNIONFSMOUNT_REQUIRE_NETMOUNT:-no}" == "yes" ]] ; then need netmount elif [[ "${UNIONFSMOUNT_REQUIRE_NFSMOUNT:-no}" == "yes" ]] ; then need nfsmount else need localmount fi } start() { ebegin "Mounting network-dependent UnionFS filesystems" mount -at unionfs -O _netdev eend $? } stop() { ebegin "Unmounting network-dependent UnionFS filesystems" umount -at unionfs -O _netdev eend $? }