diff options
Diffstat (limited to 'os-plugins/plugins/qemukvm/init-hooks/20-nw-bridge-config/bridge.sh')
-rw-r--r-- | os-plugins/plugins/qemukvm/init-hooks/20-nw-bridge-config/bridge.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os-plugins/plugins/qemukvm/init-hooks/20-nw-bridge-config/bridge.sh b/os-plugins/plugins/qemukvm/init-hooks/20-nw-bridge-config/bridge.sh index 7503e3ab..c0b8bd31 100644 --- a/os-plugins/plugins/qemukvm/init-hooks/20-nw-bridge-config/bridge.sh +++ b/os-plugins/plugins/qemukvm/init-hooks/20-nw-bridge-config/bridge.sh @@ -10,10 +10,9 @@ # General information about OpenSLX can be found at http://openslx.org # # Init hook to create a bridge on the active network interface +# (should be kept identical to the files of vmware and virtualbox plugins) ############################################################################# -set -x - local bridge=br0 local brnwif=${nwif} local nwifmac=${macaddr} @@ -22,9 +21,10 @@ local nwifmac=${macaddr} brctl addbr ${bridge} || exit 0 brctl stp ${bridge} off brctl setfd ${bridge} 0.000000000001 -ip link set addr ${nwifmac} br0 +ip link set addr ${nwifmac} ${bridge} ip link set dev ${nwif} up brctl addif ${bridge} ${nwif} -# fixme: sending back the variable to init does not work properly at the moment +# fixme: sending back the variable to init does not work properly at the +# moment nwif=${bridge} |