Skip to content

Commit

Permalink
TCXB8-3555: Observing "unary operator expected" in the bootup logs (#121
Browse files Browse the repository at this point in the history
)

Reason for change: Syntax Error at the OnewifiSelfheal
Test Procedure: Execute the below mentioned command after bootup.
		grep -inr "unary operator expected" /rdklogs/logs/*
Priority: P2
Risks: Low
Signed-off-by: [email protected]
  • Loading branch information
MothiShree authored Feb 13, 2025
1 parent 0a45002 commit 4d9994b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/OneWiFi_Selfheal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ do
else
ssid_2g=`wl -i wl0.1 status | grep -m 1 "BSSID:" | cut -d ":" -f2-7 | awk '{print $1}'`
fi
if [ $ssid_2g == "00:00:00:00:00:00" ];then
if [ "$ssid_2g" == "00:00:00:00:00:00" ];then
if [ $vap_2g_down == 1 ]; then
time_diff=`expr $cur_timestamp - $pre_timestamp`
echo_t "time_diff = $time_diff" >> $LOG_FILE
Expand Down Expand Up @@ -263,7 +263,7 @@ do
else
ssid_5g=`wl -i wl1.1 status | grep -m 1 "BSSID:" | cut -d ":" -f2-7 | awk '{print $1}'`
fi
if [ $ssid_5g == "00:00:00:00:00:00" ];then
if [ "$ssid_5g" == "00:00:00:00:00:00" ];then
if [ $vap_5g_down == 1 ]; then
time_diff=`expr $cur_timestamp - $pre_timestamp`
echo_t "time_diff = $time_diff" >> $LOG_FILE
Expand Down Expand Up @@ -292,7 +292,7 @@ do
status_6g=`dmcli eRT getv Device.WiFi.AccessPoint.$private_6g_instance.Enable | grep "value:" | cut -f2- -d:| cut -f2- -d:`
if [ $status_6g == "true" ]; then
bss_status="`wl -i wl2.1 bss`"
if [ $bss_status == "down" ]; then
if [ "$bss_status" == "down" ]; then
if [ $vap_6g_down == 1 ]; then
time_diff=`expr $cur_timestamp - $pre_timestamp`
echo_t "time_diff = $time_diff" >> $LOG_FILE
Expand Down

0 comments on commit 4d9994b

Please sign in to comment.