Blame 0027-Revert-network-ifup.sh-do-not-default-to-dhcp-for-in.patch
|
Harald Hoyer |
d1bf89 |
From c9aa3cc950ebec597e51cbc0899777c2a99ca276 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
d1bf89 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
d1bf89 |
Date: Fri, 15 Jun 2012 11:56:05 +0200
|
|
Harald Hoyer |
d1bf89 |
Subject: [PATCH] Revert "network/ifup.sh: do not default to dhcp, for
|
|
Harald Hoyer |
d1bf89 |
interfaces without ip=..."
|
|
Harald Hoyer |
d1bf89 |
|
|
Harald Hoyer |
d1bf89 |
This reverts commit ede0532c580fdbace548511b07857fb2e004b299.
|
|
Harald Hoyer |
d1bf89 |
---
|
|
Harald Hoyer |
d1bf89 |
modules.d/40network/ifup.sh | 11 +++++++++++
|
|
Harald Hoyer |
d1bf89 |
1 file changed, 11 insertions(+)
|
|
Harald Hoyer |
d1bf89 |
|
|
Harald Hoyer |
d1bf89 |
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
|
|
Harald Hoyer |
d1bf89 |
index 245b450..31eb966 100755
|
|
Harald Hoyer |
d1bf89 |
--- a/modules.d/40network/ifup.sh
|
|
Harald Hoyer |
d1bf89 |
+++ b/modules.d/40network/ifup.sh
|
|
Harald Hoyer |
d1bf89 |
@@ -216,6 +216,17 @@ if [ "$netif" = "$vlanname" ] && [ ! -e /tmp/net.$vlanname.up ]; then
|
|
Harald Hoyer |
d1bf89 |
ip link add dev "$vlanname" link "$phydevice" type vlan id "$(get_vid $vlanname; echo $?)"
|
|
Harald Hoyer |
d1bf89 |
fi
|
|
Harald Hoyer |
d1bf89 |
|
|
Harald Hoyer |
d1bf89 |
+# No ip lines default to dhcp
|
|
Harald Hoyer |
d1bf89 |
+ip=$(getarg ip)
|
|
Harald Hoyer |
d1bf89 |
+
|
|
Harald Hoyer |
d1bf89 |
+if [ -z "$ip" ]; then
|
|
Harald Hoyer |
d1bf89 |
+ if [ "$netroot" = "dhcp6" ]; then
|
|
Harald Hoyer |
d1bf89 |
+ do_dhcp -6
|
|
Harald Hoyer |
d1bf89 |
+ else
|
|
Harald Hoyer |
d1bf89 |
+ do_dhcp -4
|
|
Harald Hoyer |
d1bf89 |
+ fi
|
|
Harald Hoyer |
d1bf89 |
+fi
|
|
Harald Hoyer |
d1bf89 |
+
|
|
Harald Hoyer |
d1bf89 |
# Specific configuration, spin through the kernel command line
|
|
Harald Hoyer |
d1bf89 |
# looking for ip= lines
|
|
Harald Hoyer |
d1bf89 |
for p in $(getargs ip=); do
|