network scripts: SUSE has sensible use of ifup nowadays
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Jan 2008 15:14:17 +0000 (15:14 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Jan 2008 15:14:17 +0000 (15:14 +0000)
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>
tools/examples/xen-network-common.sh

index 57b289ccea10eb316a206fc665bddbda463d5bee..95d2ef8f6293a9ed3bd9b5177a87655bc41d957d 100644 (file)
 #
 
 
-# On SuSE it is necessary to run a command before transfering addresses and
-# routes from the physical interface to the virtual.  This command creates a
-# variable $HWD_CONFIG_0 that specifies the appropriate configuration for
-# ifup.
-
 # Gentoo doesn't have ifup/ifdown, so we define appropriate alternatives.
 
 # Other platforms just use ifup / ifdown directly.
 #           that the virtual device will take once the physical device has
 #           been renamed.
 
-if [ -e /etc/SuSE-release ]
-then
-  preiftransfer()
-  {
-    eval `/sbin/getcfg -d /etc/sysconfig/network/ -f ifcfg- -- $1`
-  }
-  ifup()
-  {
-    /sbin/ifup ${HWD_CONFIG_0} $1
-  }
-elif ! which ifup >/dev/null 2>/dev/null
+if ! which ifup >/dev/null 2>/dev/null
 then
   preiftransfer()
   {