From 5fb2296b838f161dfca3b44022c037870ee3ef3b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 24 Nov 2017 16:24:48 +0100 Subject: [vmware*] Specify input file to grep .... --- .../opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/vmware12') diff --git a/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc b/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc index 8bc6cb3d..a7d3d837 100644 --- a/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc +++ b/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc @@ -26,7 +26,7 @@ setup_ethernet() { local devtype mac cnt eth # Copy type of eth0, in case the others don't specify a type in the vmx, we'll use the same # so we know the drivers are there - devtype=$(grep -m1 -i '^ethernet0\.virtualDev' | sed -r 's/^[^=]+//;s/^(\s|=|")*//;s/(\s|")+$//') # TODO: Make a helper like "getVmxOption" + devtype=$(< "${TMPCONFIG}" grep -m1 -i '^ethernet0\.virtualDev' | sed -r 's/^[^=]+//;s/^(\s|=|")*//;s/(\s|")+$//') # TODO: Make a helper like "getVmxOption" cnt=0 for mac in $OTHER_NICS; do vmnet=$(( cnt + 10 )) -- cgit v1.2.3-55-g7522