Skip to content

Commit f3ad108

Browse files
committed
Non-alignment spaces resolved
1 parent be2de77 commit f3ad108

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

files/image_config/platform/rc.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ if [ -f $FIRST_BOOT_FILE ]; then
243243
# Create /host/reboot-cause/platform/ directory
244244
# can be used to track last reboot reason by some platforms
245245
if [ ! -d /host/reboot-cause/platform ]; then
246-
mkdir -p /host/reboot-cause/platform
246+
mkdir -p /host/reboot-cause/platform
247247
fi
248248

249249
if [ -d /host/image-$SONIC_VERSION/platform/$platform ]; then

platform/broadcom/sonic-platform-modules-dell/s6100/scripts/track_reboot_reason.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ _is_thermal_reset() {
9191
prev_thermal=$(cat $REBOOT_REASON_FILE)
9292
curr_poweron_reason=$(cat $SMF_POWERON_REASON)
9393
if [[ $curr_poweron_reason = "11" ]]; then
94-
echo 0
95-
return
94+
echo 0
95+
return
9696
fi
9797
if [[ $prev_thermal = $curr_poweron_reason ]]; then
9898
echo 2
@@ -120,14 +120,14 @@ _is_watchdog_reset(){
120120

121121
_is_unknown_reset(){
122122
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
127127
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
131131
fi
132132

133133
}
@@ -159,7 +159,7 @@ update_mailbox_register(){
159159
elif [[ $reason = "cc" ]]; then
160160
echo 0xaa > $MAILBOX_POWERON_REASON
161161
else
162-
_is_unknown_reset $is_thermal_reboot
162+
_is_unknown_reset $is_thermal_reboot
163163
echo 0x99 > $MAILBOX_POWERON_REASON
164164
fi
165165
fi

0 commit comments

Comments
 (0)