index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-10-12 14:40:19 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-10-12 14:40:19 -0300 |
commit | eba6f9aa1256b514d727b906a5033ea8aac9e7be (patch) | |
tree | 9ec8027f762baf429032cf3fce67a2a584615e7c /archiso/hooks/archiso_pxe_nbd | |
parent | 364f84c01ea3d3f7f8fd5f2924f936583fa23d40 (diff) |
-rw-r--r-- | archiso/hooks/archiso_pxe_nbd | 4 |
diff --git a/archiso/hooks/archiso_pxe_nbd b/archiso/hooks/archiso_pxe_nbd index e3e27e7..cc21c2b 100644 --- a/archiso/hooks/archiso_pxe_nbd +++ b/archiso/hooks/archiso_pxe_nbd @@ -8,10 +8,10 @@ run_hook () { if [ -n "${BOOTIF}" ]; then bootif_mac=${BOOTIF#01-} bootif_mac=${bootif_mac//-/:} - bootif_dev=$(grep -l $bootif_mac /sys/class/net/*/address) + 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" + ip="${ip}::${bootif_dev}" fi # setup network and save some values |