From eba6f9aa1256b514d727b906a5033ea8aac9e7be Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Wed, 12 Oct 2011 14:40:19 -0300 Subject: [archiso] Unify -> Signed-off-by: Gerardo Exequiel Pozzi --- archiso/hooks/archiso_pxe_nbd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archiso') 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 -- cgit v1.2.3-70-g09d2