blob: e227612ae9ef5b5016e809a9bef7acd1f7e608d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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.1.1 2005/11/30 09:55:00 chriswhite 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"
}
|