Revert "[devices]: Watchdog enable/disable in DellEMC S6100 (#2730)" (#2817)

This reverts commit 22d17da09c.
This commit is contained in:
Ying Xie 2019-04-23 09:35:20 -07:00 committed by GitHub
parent 818ba436a9
commit efc28a6830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 28 deletions

View File

@ -4,7 +4,5 @@ common/dell_i2c_utils.sh usr/local/bin
common/io_rd_wr.py usr/local/bin common/io_rd_wr.py usr/local/bin
common/platform_reboot usr/share/sonic/device/x86_64-dell_s6100_c2538-r0 common/platform_reboot usr/share/sonic/device/x86_64-dell_s6100_c2538-r0
s6100/scripts/platform_sensors.py usr/local/bin s6100/scripts/platform_sensors.py usr/local/bin
s6100/scripts/platform_watchdog_enable.sh usr/local/bin
s6100/scripts/platform_watchdog_disable.sh usr/local/bin
s6100/scripts/sensors usr/bin s6100/scripts/sensors usr/bin
s6100/systemd/platform-modules-s6100.service etc/systemd/system s6100/systemd/platform-modules-s6100.service etc/systemd/system

View File

@ -1,13 +0,0 @@
#!/bin/bash
#This script is used to disable SMF Watchdog Timer
wd_status=-1
enabled=0
# Disable Watchdog if enabled
wd_status=$(io_rd_wr.py --get --offset 0x207 | cut -d " " -f3)
if [[ $wd_status -eq $enabled ]]; then
echo "Disabling Watchdog Timer.."
io_rd_wr.py --set --val 1 --offset 0x207
fi

View File

@ -1,8 +0,0 @@
#!/bin/bash
#This script is used to enable SMF Watchdog Timer
# Set watchdog to 180 seconds
io_rd_wr.py --set --val 3 --offset 0x206
# Enable watchdog timer
io_rd_wr.py --set --val 0 --offset 0x207

View File

@ -226,11 +226,6 @@ if [[ "$1" == "init" ]]; then
modprobe dell_s6100_iom_cpld modprobe dell_s6100_iom_cpld
modprobe dell_s6100_lpc modprobe dell_s6100_lpc
# Disable Watchdog Timer
if [[ -e /usr/local/bin/platform_watchdog_disable.sh ]]; then
exec /usr/local/bin/platform_watchdog_disable.sh
fi
cpu_board_mux "new_device" cpu_board_mux "new_device"
switch_board_mux "new_device" switch_board_mux "new_device"
sys_eeprom "new_device" sys_eeprom "new_device"