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:
b4692ce
)
network/ifup.sh: default to dhcp for BOOTIF
author
Harald Hoyer
<harald@redhat.com>
Mon, 11 Jun 2012 15:11:49 +0000
(17:11 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 11 Jun 2012 15:11:49 +0000
(17:11 +0200)
modules.d/40network/ifup.sh
patch
|
blob
|
history
diff --git
a/modules.d/40network/ifup.sh
b/modules.d/40network/ifup.sh
index
f785968
..
35ae3c6
100755
(executable)
--- a/
modules.d/40network/ifup.sh
+++ b/
modules.d/40network/ifup.sh
@@
-213,6
+213,13
@@
if [ "$netif" = "$vlanname" ] && [ ! -e /tmp/net.$vlanname.up ]; then
ip link add dev "$vlanname" link "$phydevice" type vlan id "$(get_vid $vlanname; echo $?)"
fi
+# BOOTIF= defaults to dhcpv4
+bootif=$(getargs BOOTIF=)
+if [ -n "$bootif" ] ; then
+ do_dhcp -4
+ exit 0
+fi
+
# Specific configuration, spin through the kernel command line
# looking for ip= lines
for p in $(getargs ip=); do