ia64/xen-unstable

changeset 16801:4a6282589b90

Revert network-nat script changes introduced by 16739:33dcf04d77152.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jan 18 13:40:22 2008 +0000 (2008-01-18)
parents 80ea335cf209
children 2633dc4f55d4
files tools/examples/network-nat
line diff
     1.1 --- a/tools/examples/network-nat	Fri Jan 18 13:35:26 2008 +0000
     1.2 +++ b/tools/examples/network-nat	Fri Jan 18 13:40:22 2008 +0000
     1.3 @@ -43,9 +43,9 @@ fi
     1.4  
     1.5  function dhcp_start()
     1.6  {
     1.7 -  if ! grep -q "subnet 192.0.2.0" "$dhcpd_conf_file"
     1.8 +  if ! grep -q "subnet 10.0.0.0" "$dhcpd_conf_file"
     1.9    then
    1.10 -    echo >>"$dhcpd_conf_file" "subnet 192.0.2.0 netmask 255.255.255.0 {}"
    1.11 +    echo >>"$dhcpd_conf_file" "subnet 10.0.0.0 netmask 255.255.0.0 {}"
    1.12    fi
    1.13  
    1.14    "$dhcpd_init_file" restart
    1.15 @@ -55,7 +55,7 @@ function dhcp_start()
    1.16  function dhcp_stop()
    1.17  {
    1.18    local tmpfile=$(mktemp)
    1.19 -  grep -v "subnet 192.0.2.0" "$dhcpd_conf_file" >"$tmpfile"
    1.20 +  grep -v "subnet 10.0.0.0" "$dhcpd_conf_file" >"$tmpfile"
    1.21    if diff "$tmpfile" "$dhcpd_conf_file" >&/dev/null
    1.22    then
    1.23      rm "$tmpfile"