ia64/xen-unstable

changeset 8123:d1abced7ab7c

Support facilities for the new DHCP support.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Tue Nov 29 14:57:33 2005 +0000 (2005-11-29)
parents 28331cd6d43a
children b1940475284f
files tools/examples/xen-network-common.sh
line diff
     1.1 --- a/tools/examples/xen-network-common.sh	Tue Nov 29 14:56:54 2005 +0000
     1.2 +++ b/tools/examples/xen-network-common.sh	Tue Nov 29 14:57:33 2005 +0000
     1.3 @@ -69,3 +69,29 @@ else
     1.4      true
     1.5    }
     1.6  fi
     1.7 +
     1.8 +
     1.9 +first_file()
    1.10 +{
    1.11 +  t="$1"
    1.12 +  shift
    1.13 +  for file in $@
    1.14 +  do
    1.15 +    if [ "$t" "$file" ]
    1.16 +    then
    1.17 +      echo "$file"
    1.18 +      return
    1.19 +    fi
    1.20 +  done
    1.21 +}
    1.22 +
    1.23 +find_dhcpd_conf_file()
    1.24 +{
    1.25 +  first_file -f /etc/dhcp3/dhcpd.conf /etc/dhcpd.conf
    1.26 +}
    1.27 +
    1.28 +
    1.29 +find_dhcpd_init_file()
    1.30 +{
    1.31 +  first_file -x /etc/init.d/dhcp3-server /etc/init.d/dhcp
    1.32 +}