Add scripts to create JSON files for CLI backend

Scripts to create /var/platform/syseeprom and /var/platform/system, which are back-end
files for CLI, for system EEPROM and system information.

Signed-off-by: Howard Persh <Howard_Persh@dell.com>
This commit is contained in:
Howard Persh 2019-07-12 10:43:53 -07:00
parent ec0d35dd4e
commit 1430d49824
3 changed files with 8 additions and 2 deletions

2
.gitmodules vendored
View File

@ -34,7 +34,7 @@
url = https://github.com/p4lang/ptf.git
[submodule "src/sonic-utilities"]
path = src/sonic-utilities
url = https://github.com/Azure/sonic-utilities
url = https://github.com/project-arlo/sonic-utilities.git
[submodule "platform/broadcom/sonic-platform-modules-arista"]
path = platform/broadcom/sonic-platform-modules-arista
url = https://github.com/aristanetworks/sonic

View File

@ -354,4 +354,10 @@ if [ -f $FIRST_BOOT_FILE ]; then
firsttime_exit
fi
# Write contents of system EEPROM as JSON file
/usr/bin/decode-syseeprom | /usr/bin/syseeprom-to-json > /var/platform/syseeprom
# Start system information poller
/usr/bin/syspoll &
exit 0

@ -1 +1 @@
Subproject commit 09806b861486091d9db5cb75bdd2cc9428e46844
Subproject commit bd16c4467e3c4aefecce6f545529aea7cc633d6a