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 <Mike.Engel@digi.com>

https://jira.digi.com/browse/DEL-3917
This commit is contained in:
Mike Engel 2017-03-14 13:20:10 +01:00
parent 5cccb22389
commit b180a3e0b1
1 changed files with 4 additions and 2 deletions

View File

@ -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