Welcome to the new location of Alien's Wiki, sharing a single dokuwiki install with the SlackDocs Wiki.
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| slackware:vde [2006/04/12 12:07] – alien | slackware:vde [2007/11/30 21:42] (current) – fix qemu 'macaddr' syntax; fix rc.vdenetwork script alien | ||
|---|---|---|---|
| Line 120: | Line 120: | ||
| / | / | ||
| </ | </ | ||
| + | |||
| Line 174: | Line 175: | ||
| echo -n " | echo -n " | ||
| - | # If we are running 2.6, load tun module | + | # Load tun module |
| - | | + | / |
| - | | + | # Wait for the module to be loaded |
| - | # Wait for the module to be loaded | + | while ! /bin/lsmod |grep -q " |
| - | while ! /bin/lsmod |grep -q " | + | |
| - | fi | + | |
| # Start tap switch | # Start tap switch | ||
| Line 230: | Line 229: | ||
| # Remove the control socket | # Remove the control socket | ||
| rm -f /tmp/vde.* | rm -f /tmp/vde.* | ||
| + | rmdir / | ||
| # Stop dnsmasq | # Stop dnsmasq | ||
| pgrep -f dnsmasq | xargs kill -TERM | pgrep -f dnsmasq | xargs kill -TERM | ||
| Line 237: | Line 237: | ||
| restart|reload) | restart|reload) | ||
| $0 stop | $0 stop | ||
| + | sleep 1 | ||
| $0 start | $0 start | ||
| ;; | ;; | ||
| Line 272: | Line 273: | ||
| # This command returns to the command prompt immediately, | # This command returns to the command prompt immediately, | ||
| - | # and QEMU's error output is redirected to files. | + | # and QEMU' |
| - | vdeqemu -net vde,vlan=0 -net nic, | + | vdeqemu -net vde,vlan=0 -net nic, |
| </ | </ | ||