check the existence of platforms/ before including it (#37)

This commit is contained in:
lguohan 2016-10-21 00:29:27 -07:00 committed by Shuotian Cheng
parent 93852194eb
commit d45ff354e2

View File

@ -51,7 +51,7 @@ CONSOLE_SPEED=9600
# Get platform specific linux kernel command line arguments
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX=""
source platforms/$onie_platform
[ -r platforms/$onie_platform ] && source platforms/$onie_platform
# Install demo on same block device as ONIE
onie_dev=$(blkid | grep ONIE-BOOT | head -n 1 | awk '{print $1}' | sed -e 's/:.*$//')