Skip to content

Commit

Permalink
Add a rebooting specific tool
Browse files Browse the repository at this point in the history
  • Loading branch information
roger530-ho committed May 26, 2023
1 parent 021c117 commit 8a162b2
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
20 changes: 20 additions & 0 deletions device/accton/x86_64-accton_as9726_32d-r0/platform_reboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

echo "Do sync"
sync

echo "Stop pmon.service"
systemctl stop pmon.service

echo "Stop as9726-32d-platform-monitor-fan.service"
systemctl stop as9726-32d-platform-monitor-fan.service

echo "Stop as9726-32d-platform-monitor-psu.service"
systemctl stop as9726-32d-platform-monitor-psu.service

echo "Stop as9726-32d-platform-monitor.service"
systemctl stop as9726-32d-platform-monitor.service

echo "Cold Reset via CPLD Offset 0x4 Bit 3"
i2cset -y -f 1 0x65 0x4 0x15

11 changes: 11 additions & 0 deletions device/accton/x86_64-accton_as9726_32d-r0/warm-reboot_plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

echo "Stop as9726-32d-platform-monitor-fan.service"
systemctl stop as9726-32d-platform-monitor-fan.service

echo "Stop as9726-32d-platform-monitor-psu.service"
systemctl stop as9726-32d-platform-monitor-psu.service

echo "Stop as9726-32d-platform-monitor.service"
systemctl stop as9726-32d-platform-monitor.service

0 comments on commit 8a162b2

Please sign in to comment.