diff options
author | David Thurstenson <thurstylark@gmail.com> | 2017-03-10 14:01:06 -0600 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@gmail.com> | 2017-03-14 11:12:29 -0300 |
commit | 3fec50122543908a744c200e0bdfb3ceab6331a7 (patch) | |
tree | 58def0f3bec636e097860541b64100cb0163acbc /archiso/initcpio/hooks/archiso_pxe_common | |
parent | ae854ed712d15559a02600d25f3919ddc96b8d42 (diff) | |
download | archiso32-3fec50122543908a744c200e0bdfb3ceab6331a7.tar.xz |
Handle case where ip=dhcpupstreamMaster
Signed-off-by: David Thurstenson <thurstylark@gmail.com>
Diffstat (limited to 'archiso/initcpio/hooks/archiso_pxe_common')
-rw-r--r-- | archiso/initcpio/hooks/archiso_pxe_common | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/archiso/initcpio/hooks/archiso_pxe_common b/archiso/initcpio/hooks/archiso_pxe_common index 96a10c5..2380ca3 100644 --- a/archiso/initcpio/hooks/archiso_pxe_common +++ b/archiso/initcpio/hooks/archiso_pxe_common @@ -22,7 +22,11 @@ run_hook () { break fi done - ip="${ip}::${bootif_dev}" + if [[ "${ip}" == "dhcp" ]]; then + ip=":::::${bootif_dev}:dhcp" + else + ip="${ip}::${bootif_dev}" + fi fi # setup network and save some values |