#!/sbin/runscript
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/vde/files/vde.init,v 1.4 2010/01/12 12:58:36 dang Exp $
+# $Id$
depend() {
after net.${VDE_TAP}
start() {
ebegin "Starting vde"
- [ "${VDE_MODPROBE_TUN}" == "yes" ] && modprobe tun
+ [ "${VDE_MODPROBE_TUN}" = "yes" ] && modprobe tun
start-stop-daemon --start --quiet \
--exec /usr/bin/vde_switch -- ${VDE_OPTS}
eend $? "Failed to start vde"
stop() {
ebegin "Stopping vde"
- [ "${VDE_MODPROBE_TUN}" == "yes" ] && modprobe -r tun
start-stop-daemon --stop --quiet --exec /usr/bin/vde_switch
+ [ "${VDE_MODPROBE_TUN}" = "yes" ] && modprobe -r tun
eend $? "Failed to stop vde"
}