Blame 0015-network-ifup.sh-default-to-dhcp-for-BOOTIF.patch
|
Harald Hoyer |
18c19d |
From bebb12fd0ec3cbb88006e384a9a277391a2f3a37 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
18c19d |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
18c19d |
Date: Mon, 11 Jun 2012 17:11:49 +0200
|
|
Harald Hoyer |
18c19d |
Subject: [PATCH] network/ifup.sh: default to dhcp for BOOTIF
|
|
Harald Hoyer |
18c19d |
|
|
Harald Hoyer |
18c19d |
---
|
|
Harald Hoyer |
18c19d |
modules.d/40network/ifup.sh | 7 +++++++
|
|
Harald Hoyer |
18c19d |
1 file changed, 7 insertions(+)
|
|
Harald Hoyer |
18c19d |
|
|
Harald Hoyer |
18c19d |
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
|
|
Harald Hoyer |
18c19d |
index f785968..35ae3c6 100755
|
|
Harald Hoyer |
18c19d |
--- a/modules.d/40network/ifup.sh
|
|
Harald Hoyer |
18c19d |
+++ b/modules.d/40network/ifup.sh
|
|
Harald Hoyer |
18c19d |
@@ -213,6 +213,13 @@ if [ "$netif" = "$vlanname" ] && [ ! -e /tmp/net.$vlanname.up ]; then
|
|
Harald Hoyer |
18c19d |
ip link add dev "$vlanname" link "$phydevice" type vlan id "$(get_vid $vlanname; echo $?)"
|
|
Harald Hoyer |
18c19d |
fi
|
|
Harald Hoyer |
18c19d |
|
|
Harald Hoyer |
18c19d |
+# BOOTIF= defaults to dhcpv4
|
|
Harald Hoyer |
18c19d |
+bootif=$(getargs BOOTIF=)
|
|
Harald Hoyer |
18c19d |
+if [ -n "$bootif" ] ; then
|
|
Harald Hoyer |
18c19d |
+ do_dhcp -4
|
|
Harald Hoyer |
18c19d |
+ exit 0
|
|
Harald Hoyer |
18c19d |
+fi
|
|
Harald Hoyer |
18c19d |
+
|
|
Harald Hoyer |
18c19d |
# Specific configuration, spin through the kernel command line
|
|
Harald Hoyer |
18c19d |
# looking for ip= lines
|
|
Harald Hoyer |
18c19d |
for p in $(getargs ip=); do
|