index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2010-03-21 17:46:16 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2010-03-21 18:51:37 -0300 |
commit | 8758565d9daf8c76d9e829d8ceed8e6f226bb775 (patch) | |
tree | be3dc4f95de88b6ccd57dbe96ddd16593246f3f4 | |
parent | 8ecdc7c2b555fa121be4089415b1511e1b7d8440 (diff) |
-rw-r--r-- | archiso/hooks/archiso_pxe_nbd | 9 |
diff --git a/archiso/hooks/archiso_pxe_nbd b/archiso/hooks/archiso_pxe_nbd index 2d4163e..c277b78 100644 --- a/archiso/hooks/archiso_pxe_nbd +++ b/archiso/hooks/archiso_pxe_nbd @@ -5,6 +5,15 @@ run_hook () { : > /ip_opts if [ -n "${ip}" ]; then + if [ -n "${BOOTIF}" ]; then + bootif_mac=${BOOTIF#01-} + bootif_mac=${bootif_mac//-/:} + bootif_dev=$(grep -l $bootif_mac /sys/class/net/*/address) + bootif_dev=${bootif_dev#/sys/class/net/} + bootif_dev=${bootif_dev%/address} + ip="$ip::$bootif_dev" + fi + # setup network and save some values ipconfig "ip=${ip}" | while read line; do # echo ":: ${line}" |