Skip to content

Commit

Permalink
Added the feature to run an option platform specific script on the fi…
Browse files Browse the repository at this point in the history
…rst installation.

We added the ability to run an optional platform specific script when the onie image is
installed. This will be useful in the case of doing some switch specifc tasks.
  • Loading branch information
olivier-singla committed Feb 6, 2019
1 parent ed2d87a commit 25fa459
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions files/image_config/platform/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ if [ -f $FIRST_BOOT_FILE ]; then
mv /host/grub.cfg /host/grub/grub.cfg
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
fi
firsttime_exit
fi

Expand Down

0 comments on commit 25fa459

Please sign in to comment.