check the existence of platforms/ before including it (#37)
This commit is contained in:
parent
93852194eb
commit
d45ff354e2
@ -51,7 +51,7 @@ CONSOLE_SPEED=9600
|
|||||||
|
|
||||||
# Get platform specific linux kernel command line arguments
|
# Get platform specific linux kernel command line arguments
|
||||||
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX=""
|
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
|
# Install demo on same block device as ONIE
|
||||||
onie_dev=$(blkid | grep ONIE-BOOT | head -n 1 | awk '{print $1}' | sed -e 's/:.*$//')
|
onie_dev=$(blkid | grep ONIE-BOOT | head -n 1 | awk '{print $1}' | sed -e 's/:.*$//')
|
||||||
|
Reference in New Issue
Block a user