maybe chmod 0644 './conf.d/twistd'
maybe chmod 0644 './conf.d/udev'
maybe chmod 0644 './conf.d/urandom'
+maybe chmod 0644 './conf.d/vde'
maybe chmod 0644 './conf.d/wpa_supplicant'
maybe chmod 0644 './conf.d/xdm'
maybe chmod 0644 './conf.d/xinetd'
maybe chmod 0755 './init.d/udev-postmount'
maybe chmod 0755 './init.d/ulogd'
maybe chmod 0755 './init.d/urandom'
+maybe chmod 0755 './init.d/vde'
maybe chmod 0755 './init.d/vixie-cron'
maybe chmod 0755 './init.d/wpa_supplicant'
maybe chmod 0755 './init.d/xdm'
maybe chmod 0644 './updatedb.conf'
maybe chmod 0755 './vbox'
maybe chmod 0644 './vbox/vbox.cfg'
+maybe chmod 0755 './vde2'
+maybe chmod 0755 './vde2/libvdemgmt'
+maybe chmod 0644 './vde2/libvdemgmt/asyncrecv.rc'
+maybe chmod 0644 './vde2/libvdemgmt/closemachine.rc'
+maybe chmod 0644 './vde2/libvdemgmt/openmachine.rc'
+maybe chmod 0644 './vde2/libvdemgmt/sendcmd.rc'
+maybe chmod 0644 './vde2/vdecmd'
maybe chmod 0755 './vim'
maybe chmod 0644 './vim/gvimrc'
maybe chmod 0644 './vim/vimrc'
--- /dev/null
+# load the tun module
+VDE_MODPROBE_TUN="yes"
+# virtual tap networking device to be used for vde
+VDE_TAP="tap0"
+# mode and group for the socket
+VDE_SOCK_CHMOD="770"
+VDE_SOCK_CHOWN=":qemu"
+
+# This is the actual options string passed to VDE. Change this at your own risk.
+VDE_OPTS="-tap ${VDE_TAP} -daemon"
--- /dev/null
+#!/sbin/runscript
+# Copyright 1999-2010 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 $
+
+depend() {
+ after net.${VDE_TAP}
+}
+
+
+start() {
+ ebegin "Starting vde"
+ [ "${VDE_MODPROBE_TUN}" == "yes" ] && modprobe tun
+ start-stop-daemon --start --quiet \
+ --exec /usr/bin/vde_switch -- ${VDE_OPTS}
+ eend $? "Failed to start vde"
+ chmod -R ${VDE_SOCK_CHMOD} /var/run/vde.ctl
+ chown -R ${VDE_SOCK_CHOWN} /var/run/vde.ctl
+}
+
+stop() {
+ ebegin "Stopping vde"
+ [ "${VDE_MODPROBE_TUN}" == "yes" ] && modprobe -r tun
+ start-stop-daemon --stop --quiet --exec /usr/bin/vde_switch
+ eend $? "Failed to stop vde"
+}