ia64/xen-unstable

changeset 16740:68673ad57302

network scripts: SUSE has sensible use of ifup nowadays

While wading through the patches made to Xen by OpenSUSE in their
[s]rpm, I found that they have removed various special casing for ifup
on ther distribution.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 17 15:14:17 2008 +0000 (2008-01-17)
parents 33dcf04d7715
children 2773cdbecda5
files tools/examples/xen-network-common.sh
line diff
     1.1 --- a/tools/examples/xen-network-common.sh	Thu Jan 17 15:13:40 2008 +0000
     1.2 +++ b/tools/examples/xen-network-common.sh	Thu Jan 17 15:14:17 2008 +0000
     1.3 @@ -16,11 +16,6 @@
     1.4  #
     1.5  
     1.6  
     1.7 -# On SuSE it is necessary to run a command before transfering addresses and
     1.8 -# routes from the physical interface to the virtual.  This command creates a
     1.9 -# variable $HWD_CONFIG_0 that specifies the appropriate configuration for
    1.10 -# ifup.
    1.11 -
    1.12  # Gentoo doesn't have ifup/ifdown, so we define appropriate alternatives.
    1.13  
    1.14  # Other platforms just use ifup / ifdown directly.
    1.15 @@ -32,17 +27,7 @@
    1.16  #           that the virtual device will take once the physical device has
    1.17  #           been renamed.
    1.18  
    1.19 -if [ -e /etc/SuSE-release ]
    1.20 -then
    1.21 -  preiftransfer()
    1.22 -  {
    1.23 -    eval `/sbin/getcfg -d /etc/sysconfig/network/ -f ifcfg- -- $1`
    1.24 -  }
    1.25 -  ifup()
    1.26 -  {
    1.27 -    /sbin/ifup ${HWD_CONFIG_0} $1
    1.28 -  }
    1.29 -elif ! which ifup >/dev/null 2>/dev/null
    1.30 +if ! which ifup >/dev/null 2>/dev/null
    1.31  then
    1.32    preiftransfer()
    1.33    {