From f3ad108dbdd2a843ef7ba4960991e59fd584272c Mon Sep 17 00:00:00 2001 From: st Date: Mon, 10 Feb 2020 11:40:15 +0530 Subject: [PATCH] Non-alignment spaces resolved --- files/image_config/platform/rc.local | 2 +- .../s6100/scripts/track_reboot_reason.sh | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/files/image_config/platform/rc.local b/files/image_config/platform/rc.local index 4509df27773..db95292527d 100755 --- a/files/image_config/platform/rc.local +++ b/files/image_config/platform/rc.local @@ -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 diff --git a/platform/broadcom/sonic-platform-modules-dell/s6100/scripts/track_reboot_reason.sh b/platform/broadcom/sonic-platform-modules-dell/s6100/scripts/track_reboot_reason.sh index 9845ccf6cb0..0686d577c9e 100755 --- a/platform/broadcom/sonic-platform-modules-dell/s6100/scripts/track_reboot_reason.sh +++ b/platform/broadcom/sonic-platform-modules-dell/s6100/scripts/track_reboot_reason.sh @@ -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 @@ -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 } @@ -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