Skip to content

Commit

Permalink
Better use $platform instead of $device_platform
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-singla committed Feb 13, 2019
1 parent 25fa459 commit 8142b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/image_config/platform/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ if [ -f $FIRST_BOOT_FILE ]; then
fi

# If there is a platform dependant script, execute it
if [ -x /usr/share/sonic/device/${onie_platform}/platform_setup ]; then
/usr/share/sonic/device/${onie_platform}/platform_setup
if [ -x /usr/share/sonic/device/${platform}/platform_setup ]; then
/usr/share/sonic/device/${platform}/platform_setup
fi
firsttime_exit
fi
Expand Down

0 comments on commit 8142b86

Please sign in to comment.