- 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
This commit is contained in:
Olaf Hering 2013-07-24 08:19:48 +00:00 committed by Git OBS Bridge
parent d58ac4b8e0
commit ea11bf351a
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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