Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorDavid Thurstenson <thurstylark@gmail.com>2017-03-10 14:01:06 -0600
committerGerardo Exequiel Pozzi <vmlinuz386@gmail.com>2017-03-14 11:12:29 -0300
commit8afbf3d5e8968e21915feec812800b002d3a4bf1 (patch)
tree2a1317c0e153720c9a13c5da4a2e042dac47242c /hooks
parenta914269eecca066e8dfe53ae16b5443f232dc498 (diff)
Handle case where ip=dhcp
Signed-off-by: David Thurstenson <thurstylark@gmail.com>
Diffstat (limited to 'hooks')
-rw-r--r--hooks/archiso_pxe_common6
1 files changed, 5 insertions, 1 deletions
diff --git a/hooks/archiso_pxe_common b/hooks/archiso_pxe_common
index 96a10c5..2380ca3 100644
--- a/hooks/archiso_pxe_common
+++ b/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