From 8c9327860dc7611be50e50e3d1211d25619705f7 Mon Sep 17 00:00:00 2001 From: Adrien Reslinger Date: Wed, 1 Sep 2021 09:56:25 +0200 Subject: [PATCH] Update install_pxe.sh script --- files/usr/local/sbin/install_pxe.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/usr/local/sbin/install_pxe.sh b/files/usr/local/sbin/install_pxe.sh index 9680344..59bbe0a 100755 --- a/files/usr/local/sbin/install_pxe.sh +++ b/files/usr/local/sbin/install_pxe.sh @@ -72,9 +72,7 @@ else fi cd /boot wget "$MIRROIR"/isolinux/{vmlinuz,initrd.img} -if [ $(ip link show | grep ^[0-9] | grep -v lo: | wc -l) -eq 1 ]; then - INST_OPTIONS="ks.device=link ${INST_OPTIONS}" -else +if [ $(ip link show | grep ^[0-9] | grep -v lo: | wc -l) -ne 1 ]; then INST_OPTIONS="ks.device=$MAC ${INST_OPTIONS}" fi if [ ! -z "$STATIC" ]; then