-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[platform/dx010] Fix issing qsfp_reset sysfs file (#2007)
* Fix qsfp_reset file missing. * [platform/dx010] Add systemd unit for platform init.
- Loading branch information
Showing
5 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
platform/broadcom/sonic-platform-modules-cel/debian/platform-modules-dx010.install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
dx010/scripts/dx010_check_qsfp.sh usr/local/bin | ||
dx010/cfg/dx010-modules.conf etc/modules-load.d | ||
dx010/systemd/platform-modules-dx010.service lib/systemd/system |
3 changes: 3 additions & 0 deletions
3
platform/broadcom/sonic-platform-modules-cel/debian/platform-modules-dx010.postinst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
depmod -a | ||
systemctl enable platform-modules-dx010.service | ||
systemctl start platform-modules-dx010.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
platform/broadcom/sonic-platform-modules-cel/dx010/systemd/platform-modules-dx010.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
[Unit] | ||
Description=Celestica Seastone dx010 platform modules | ||
After=local-fs.target | ||
Before=pmon.service | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=-/etc/init.d/platform-modules-dx010 start | ||
ExecStop=-/etc/init.d/platform-modules-dx010 stop | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=multi-user.target |