summaryrefslogtreecommitdiff
path: root/modules.d/40network
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-06-11 17:11:49 +0200
committerHarald Hoyer <harald@redhat.com>2012-06-11 17:11:49 +0200
commitbebb12fd0ec3cbb88006e384a9a277391a2f3a37 (patch)
treee633fe9f8eecdfcaaad13dba6a556d25479f8ef5 /modules.d/40network
parentb4692ce3889d5e165a9aa51db7732baf2996fd7a (diff)
downloaddracut-bebb12fd0ec3cbb88006e384a9a277391a2f3a37.tar.gz
dracut-bebb12fd0ec3cbb88006e384a9a277391a2f3a37.tar.bz2
dracut-bebb12fd0ec3cbb88006e384a9a277391a2f3a37.zip
network/ifup.sh: default to dhcp for BOOTIF
Diffstat (limited to 'modules.d/40network')
-rwxr-xr-xmodules.d/40network/ifup.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
index f7859687..35ae3c60 100755
--- 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