|
Last change
on this file since 34 was
34,
checked in by hartmans, 18 years ago
|
|
Add xen and xen-common
|
-
Property svn:executable set to
*
|
|
File size:
741 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | #============================================================================ |
|---|
| 3 | # Default Xen network start/stop script. |
|---|
| 4 | # Xend calls a network script when it starts. |
|---|
| 5 | # The script name to use is defined in /etc/xen/xend-config.sxp |
|---|
| 6 | # in the network-script field. |
|---|
| 7 | # |
|---|
| 8 | # Usage: |
|---|
| 9 | # |
|---|
| 10 | # network-route (start|stop|status) {VAR=VAL}* |
|---|
| 11 | # |
|---|
| 12 | # Vars: |
|---|
| 13 | # |
|---|
| 14 | # netdev The gateway interface (default eth0). |
|---|
| 15 | # antispoof Whether to use iptables to prevent spoofing (default yes). |
|---|
| 16 | # |
|---|
| 17 | #============================================================================ |
|---|
| 18 | |
|---|
| 19 | dir=$(dirname "$0") |
|---|
| 20 | . "$dir/xen-script-common.sh" |
|---|
| 21 | |
|---|
| 22 | evalVariables "$@" |
|---|
| 23 | |
|---|
| 24 | netdev=${netdev:-eth${vifnum}} |
|---|
| 25 | |
|---|
| 26 | echo 1 >/proc/sys/net/ipv4/ip_forward |
|---|
| 27 | echo 1 >/proc/sys/net/ipv4/conf/${netdev}/proxy_arp |
|---|
Note: See
TracBrowser
for help on using the repository browser.