diff options
Diffstat (limited to 'vde')
-rwxr-xr-x | vde/build/rc.vdenetwork | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/vde/build/rc.vdenetwork b/vde/build/rc.vdenetwork index b5e55db4..194b9c08 100755 --- a/vde/build/rc.vdenetwork +++ b/vde/build/rc.vdenetwork @@ -51,7 +51,8 @@ case "$1" in # If we are running 2.6, load tun module if uname -r | grep '^2.6'; then /sbin/modprobe tun 2>/dev/null - sleep 1 + # Wait for the module to be loaded + while ! /bin/lsmod |grep -q "^tun"; do echo Waiting for tun device;sleep 1; done fi # Start tap switch @@ -66,8 +67,9 @@ case "$1" in iptables -t nat -A POSTROUTING -o ${NIC} -j MASQUERADE done - # Change pipe permission - chmod 666 /tmp/vde.ctl + # Change pipe permission (vde2 uses a different pipe directory) + #chmod 666 /tmp/vde.ctl + chmod -R a+rwx /var/run/vde.ctl # If we are not running 2.6, apply workaround if uname -r | grep '^2.4'; then |