summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Phillips <rphillips@gentoo.org>2005-06-09 22:34:46 +0000
committerRyan Phillips <rphillips@gentoo.org>2005-06-09 22:34:46 +0000
commitd95e11a7ec8632c10b3acbd7a6af398dc5a178d0 (patch)
treec28386df2cc76bb1a7c249695a0c60690f686c3f /net-misc/vde/files
parentversion bump. fixes #95611 (diff)
downloadgentoo-2-d95e11a7ec8632c10b3acbd7a6af398dc5a178d0.tar.gz
gentoo-2-d95e11a7ec8632c10b3acbd7a6af398dc5a178d0.tar.bz2
gentoo-2-d95e11a7ec8632c10b3acbd7a6af398dc5a178d0.zip
added init script
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-misc/vde/files')
-rw-r--r--net-misc/vde/files/vde.init.d24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-misc/vde/files/vde.init.d b/net-misc/vde/files/vde.init.d
new file mode 100644
index 000000000000..a1f4118406df
--- /dev/null
+++ b/net-misc/vde/files/vde.init.d
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/vde/files/vde.init.d,v 1.1 2005/06/09 22:34:46 rphillips Exp $
+
+depend() {
+ before net
+}
+
+
+start() {
+ ebegin "Starting vde"
+ modprobe tun
+ start-stop-daemon --start --quiet \
+ --exec /usr/bin/vde_switch -- -tap tap0 -daemon
+ eend $? "Failed to start vde"
+}
+
+stop() {
+ ebegin "Stopping vde"
+ start-stop-daemon --stop --quiet --exec /usr/bin/vde_switch
+ rmmod tun
+ eend $? "Failed to stop vde"
+}