From ea11bf351aac6a2b23ef4a0385d3e6d25083225d6c9e5d669b5e100e1154ba5c Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 24 Jul 2013 08:19:48 +0000 Subject: [PATCH] - set BOOTPROTO=static if any IPADDR/IP6ADDR was passed to hv_set_ifconfig and dhcp is disabled OBS-URL: https://build.opensuse.org/package/show/Virtualization/hyper-v?expand=0&rev=61 --- hyper-v.changes | 6 ++++++ hyper-v.tools.hv.hv_set_ifconfig.sh | 3 +++ 2 files changed, 9 insertions(+) diff --git a/hyper-v.changes b/hyper-v.changes index 104ad6f..5ee0b75 100644 --- a/hyper-v.changes +++ b/hyper-v.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 24 10:18:34 CEST 2013 - ohering@suse.de + +- set BOOTPROTO=static if any IPADDR/IP6ADDR was passed to + hv_set_ifconfig and dhcp is disabled + ------------------------------------------------------------------- Mon Jul 15 16:16:06 CEST 2013 - ohering@suse.de diff --git a/hyper-v.tools.hv.hv_set_ifconfig.sh b/hyper-v.tools.hv.hv_set_ifconfig.sh index 695652f..e3ccd56 100644 --- a/hyper-v.tools.hv.hv_set_ifconfig.sh +++ b/hyper-v.tools.hv.hv_set_ifconfig.sh @@ -95,6 +95,9 @@ fi if test "${BOOTPROTO}" = "dhcp" then echo "BOOTPROTO=dhcp" + elif test -n "${!IPADDR*}${!IPV6ADDR*}" + then + echo "BOOTPROTO=static" fi # single index for all ipv4 and ipv6 adresses in final ifcfg file i=0