From b180a3e0b1ac7b93e26dd6ffc124821067d7ee75 Mon Sep 17 00:00:00 2001 From: Mike Engel Date: Tue, 14 Mar 2017 13:20:10 +0100 Subject: [PATCH] meta-digi-dey: Added check if wlan1 interface already exist. This commit verifies that the wlan1 interface is not already created and will skip creating the virtual interface if it already exist. Signed-off-by: Mike Engel https://jira.digi.com/browse/DEL-3917 --- .../init-ifupdown/init-ifupdown-1.0/ccimx6ul/virtwlans.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6ul/virtwlans.sh b/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6ul/virtwlans.sh index 1a2bc1f1e..600cad8c0 100644 --- a/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6ul/virtwlans.sh +++ b/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6ul/virtwlans.sh @@ -25,5 +25,7 @@ else echo "program them referring to the Digi U-Boot Documentation" fi -# This will create a second wireless network device -iw dev wlan0 interface add wlan1 type managed +if [ ! -d "/sys/class/net/wlan1" ]; then + # This will create a second wireless network device + iw dev wlan0 interface add wlan1 type managed +fi