Skip to content

Commit

Permalink
Non-alignment spaces resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-kt committed Feb 10, 2020
1 parent be2de77 commit f3ad108
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion files/image_config/platform/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ if [ -f $FIRST_BOOT_FILE ]; then
# Create /host/reboot-cause/platform/ directory
# can be used to track last reboot reason by some platforms
if [ ! -d /host/reboot-cause/platform ]; then
mkdir -p /host/reboot-cause/platform
mkdir -p /host/reboot-cause/platform
fi

if [ -d /host/image-$SONIC_VERSION/platform/$platform ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ _is_thermal_reset() {
prev_thermal=$(cat $REBOOT_REASON_FILE)
curr_poweron_reason=$(cat $SMF_POWERON_REASON)
if [[ $curr_poweron_reason = "11" ]]; then
echo 0
return
echo 0
return
fi
if [[ $prev_thermal = $curr_poweron_reason ]]; then
echo 2
Expand Down Expand Up @@ -120,14 +120,14 @@ _is_watchdog_reset(){

_is_unknown_reset(){
if [[ -f $REBOOT_CAUSE_FILE ]]; then
if [[ $1 = 0 ]]; then
echo "Unknown software reboot" > $REBOOT_CAUSE_FILE
return
fi
if [[ $1 = 0 ]]; then
echo "Unknown software reboot" > $REBOOT_CAUSE_FILE
return
fi
curr_poweron_reason=$(cat $SMF_POWERON_REASON)
curr_reset_reason=$SMF_RESET
mb_poweron_reason=$(cat $MAILBOX_POWERON_REASON)
echo "Unknown POR: $curr_poweron_reason RST: $curr_reset_reason MBR: $mb_poweron_reason" > $REBOOT_CAUSE_FILE
curr_reset_reason=$SMF_RESET
mb_poweron_reason=$(cat $MAILBOX_POWERON_REASON)
echo "Unknown POR: $curr_poweron_reason RST: $curr_reset_reason MBR: $mb_poweron_reason" > $REBOOT_CAUSE_FILE
fi

}
Expand Down Expand Up @@ -159,7 +159,7 @@ update_mailbox_register(){
elif [[ $reason = "cc" ]]; then
echo 0xaa > $MAILBOX_POWERON_REASON
else
_is_unknown_reset $is_thermal_reboot
_is_unknown_reset $is_thermal_reboot
echo 0x99 > $MAILBOX_POWERON_REASON
fi
fi
Expand Down

0 comments on commit f3ad108

Please sign in to comment.