projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31f1c02
)
40network/parse-bridge.sh: fixed bridge parameter parsing
author
Harald Hoyer
<harald@redhat.com>
Thu, 11 Aug 2011 12:22:09 +0000
(14:22 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Thu, 11 Aug 2011 12:27:27 +0000
(14:27 +0200)
modules.d/40network/parse-bridge.sh
patch
|
blob
|
history
diff --git
a/modules.d/40network/parse-bridge.sh
b/modules.d/40network/parse-bridge.sh
index 9c19c6a0017c3a85e1d73b5fd412fa59b799ac91..b2d178879bbd0fe0cfe55c01ed1bf02beb19ecc5 100755
(executable)
--- a/
modules.d/40network/parse-bridge.sh
+++ b/
modules.d/40network/parse-bridge.sh
@@
-46,11
+46,10
@@
if [ -e /tmp/bond.info ]; then
fi
# Parse bridge for bridgename and ethname
-if
getarg bridge >/dev/null
; then
+if
bridge="$(getarg bridge)"
; then
# Read bridge= parameters if they exist
- bridge="$(getarg bridge=)"
- if [ ! "$bridge" = "bridge" ]; then
- parsebridge "$(getarg bridge=)"
+ if [ -n "$bridge" ]; then
+ parsebridge $bridge
fi
# Simple default bridge
if [ -z "$bridgename" ]; then