Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Sonic z91 dell sensors1 (#15)
Browse files Browse the repository at this point in the history
* Platform support to print Z9100 and S6100 sensors

* Override default sensors script with platform specific
  • Loading branch information
padmanarayana authored and lguohan committed Aug 28, 2017
1 parent e1bdf0a commit 1abd4e6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/platform-modules-s6100.install
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ s6100/scripts/io_rd_wr.py usr/local/bin
s6100/scripts/iom_power_*.sh usr/local/bin
s6100/scripts/s6100_platform_init.sh usr/local/bin
s6100/scripts/platform_sensors.py usr/local/bin
s6100/scripts/sensors usr/bin
3 changes: 2 additions & 1 deletion debian/platform-modules-z9100.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
z9100/scripts/check_qsfp.sh usr/local/bin
z9100/scripts/z9100_platform_init.sh usr/local/bin
z9100/scripts/platform_sensors.py usr/local/bin
z9100/cfg/z9100-modules.conf etc/modules-load.d
z9100/scripts/sensors usr/bin
z9100/cfg/z9100-modules.conf etc/modules-load.d
7 changes: 7 additions & 0 deletions s6100/scripts/sensors
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
docker exec -i pmon sensors "$@"

#To probe sensors not part of lm-sensors
if [ -r /usr/local/bin/platform_sensors.py ]; then
python /usr/local/bin/platform_sensors.py
fi
7 changes: 7 additions & 0 deletions z9100/scripts/sensors
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
docker exec -i pmon sensors "$@"

#To probe sensors not part of lm-sensors
if [ -r /usr/local/bin/platform_sensors.py ]; then
python /usr/local/bin/platform_sensors.py
fi

0 comments on commit 1abd4e6

Please sign in to comment.