summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-03-04 00:02:36 +0100
committerDirk von Suchodoletz2009-03-04 00:02:36 +0100
commit4fc25af885fd34b5216b8008222b104d5a561126 (patch)
tree4786d2f01d24095460a0476693b6143758124193 /initramfs/stage3-stuff/etc/functions
parentRearranging init-hooks to add a special network bridge hook. (diff)
downloadcore-4fc25af885fd34b5216b8008222b104d5a561126.tar.gz
core-4fc25af885fd34b5216b8008222b104d5a561126.tar.xz
core-4fc25af885fd34b5216b8008222b104d5a561126.zip
Added the general bridge configuration feature as described in ticket
#311: The xenbr function is moved to the appropriate init hook from general functions (cleaning up there). The bridge init hook for the several virtualization tools like vmware, qemukvm, virtualbox use the same filename as the action is to be performed just once ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2665 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/etc/functions')
-rw-r--r--initramfs/stage3-stuff/etc/functions28
1 files changed, 1 insertions, 27 deletions
diff --git a/initramfs/stage3-stuff/etc/functions b/initramfs/stage3-stuff/etc/functions
index 4632db19..88f661a3 100644
--- a/initramfs/stage3-stuff/etc/functions
+++ b/initramfs/stage3-stuff/etc/functions
@@ -1,5 +1,5 @@
# Copyright (c) 2003..2006 - RZ Uni Freiburg
-# Copyright (c) 2006..2008 - OpenSLX GmbH
+# Copyright (c) 2006..2009 - OpenSLX GmbH
#
# This program/file is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
@@ -166,32 +166,6 @@ case "${proto}" in
esac
}
#############################################################################
-# configure Xen bridge xenbr0
-xenbr_config () {
-modprobe ${MODPRV} netloop
-local ipls
-local vifnum="0"
-local bridge="xenbr${vifnum}"
-local netdev="eth${vifnum}"
-local pdev="p${netdev}"
-local vdev="veth${vifnum}"
-local vif0="vif0.${vifnum}"
-# fixme: that is the mac address of main ethernet device
-local mac=$macaddr
-
-brctl addbr ${bridge}
-brctl stp ${bridge} off
-brctl setfd ${bridge} 0
-brctl addif ${bridge} ${vif0}
-for ipls in "${netdev} name ${pdev}" "${vdev} name ${netdev}" \
- "${pdev} down arp off" "${pdev} addr fe:ff:ff:ff:ff:ff" \
- "${netdev} addr ${mac} arp on" "${netdev} addr ${mac} arp on" \
- "${bridge} up" "${vif0} up" "${pdev} up" ; do
- ip link set ${ipls}
-done
-brctl addif ${bridge} ${pdev}
-}
-#############################################################################
# replace @@@serverip@@@ with real serverip. Allows the usage of a variable
# for the server ip address (e.g. in machine-setup or kernel commandline)
checkip ()