File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
files/image_config/platform
platform/broadcom/sonic-platform-modules-dell/s6100/scripts Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ if [ -f $FIRST_BOOT_FILE ]; then
243
243
# Create /host/reboot-cause/platform/ directory
244
244
# can be used to track last reboot reason by some platforms
245
245
if [ ! -d /host/reboot-cause/platform ]; then
246
- mkdir -p /host/reboot-cause/platform
246
+ mkdir -p /host/reboot-cause/platform
247
247
fi
248
248
249
249
if [ -d /host/image-$SONIC_VERSION /platform/$platform ]; then
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ _is_thermal_reset() {
91
91
prev_thermal=$( cat $REBOOT_REASON_FILE )
92
92
curr_poweron_reason=$( cat $SMF_POWERON_REASON )
93
93
if [[ $curr_poweron_reason = " 11" ]]; then
94
- echo 0
95
- return
94
+ echo 0
95
+ return
96
96
fi
97
97
if [[ $prev_thermal = $curr_poweron_reason ]]; then
98
98
echo 2
@@ -120,14 +120,14 @@ _is_watchdog_reset(){
120
120
121
121
_is_unknown_reset (){
122
122
if [[ -f $REBOOT_CAUSE_FILE ]]; then
123
- if [[ $1 = 0 ]]; then
124
- echo " Unknown software reboot" > $REBOOT_CAUSE_FILE
125
- return
126
- fi
123
+ if [[ $1 = 0 ]]; then
124
+ echo " Unknown software reboot" > $REBOOT_CAUSE_FILE
125
+ return
126
+ fi
127
127
curr_poweron_reason=$( cat $SMF_POWERON_REASON )
128
- curr_reset_reason=$SMF_RESET
129
- mb_poweron_reason=$( cat $MAILBOX_POWERON_REASON )
130
- echo " Unknown POR: $curr_poweron_reason RST: $curr_reset_reason MBR: $mb_poweron_reason " > $REBOOT_CAUSE_FILE
128
+ curr_reset_reason=$SMF_RESET
129
+ mb_poweron_reason=$( cat $MAILBOX_POWERON_REASON )
130
+ echo " Unknown POR: $curr_poweron_reason RST: $curr_reset_reason MBR: $mb_poweron_reason " > $REBOOT_CAUSE_FILE
131
131
fi
132
132
133
133
}
@@ -159,7 +159,7 @@ update_mailbox_register(){
159
159
elif [[ $reason = " cc" ]]; then
160
160
echo 0xaa > $MAILBOX_POWERON_REASON
161
161
else
162
- _is_unknown_reset $is_thermal_reboot
162
+ _is_unknown_reset $is_thermal_reboot
163
163
echo 0x99 > $MAILBOX_POWERON_REASON
164
164
fi
165
165
fi
You can’t perform that action at this time.
0 commit comments