diff options
author | Eric Hameleers <alien@slackware.com> | 2006-01-18 13:48:37 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2006-01-18 13:48:37 +0000 |
commit | ad28782155999aa8d269a23936964d3fd5cfbab6 (patch) | |
tree | 048bb11fa875b546563e7680123078e9f062bf40 | |
parent | 84d2dcf58015991321a7b4832ef8ec03bb18d8e8 (diff) | |
download | asb-ad28782155999aa8d269a23936964d3fd5cfbab6.tar.gz asb-ad28782155999aa8d269a23936964d3fd5cfbab6.tar.xz |
Several small updates.
-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 |