-
Notifications
You must be signed in to change notification settings - Fork 5
RDKEMW-12562 : Move Bluetooth Mac update from Device Details to Bluetooth Service #419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -70,6 +70,7 @@ SWUPDATE_LOG_FILE="$LOG_PATH/swupdate.log" | |||||
| RFC_BIN="$COMMON_BIN_LOCATION/rfcMgr" | ||||||
| SWUPDATE_BIN="$COMMON_BIN_LOCATION/rdkvfwupgrader" | ||||||
| LOGUPLOAD_SCRIPT="$RDK_PATH/uploadSTBLogs.sh" | ||||||
| LOG_UPLOAD_BIN_PATH="/usr/bin/logupload" | ||||||
|
|
||||||
| # Log Functions | ||||||
| rfcLog () | ||||||
|
|
@@ -175,14 +176,48 @@ runMaintenanceLogUploadTask() | |||||
|
|
||||||
| if [ -n "$TriggerType" ] && [ "$TriggerType" -eq "$ON_DEMAND_LOG_UPLOAD" ]; then | ||||||
| logUploadLog "Application triggered on demand log upload" | ||||||
| sh $LOGUPLOAD_SCRIPT "$tftp_server" 1 1 "$uploadOnReboot" "$upload_protocol" "$upload_httplink" "$TriggerType" 2>/dev/null | ||||||
| result=$? | ||||||
| if [ -x "$LOG_UPLOAD_BIN_PATH" ]; then | ||||||
| logUploadLog "Executing logupload binary: $LOG_UPLOAD_BIN_PATH" | ||||||
| "$LOG_UPLOAD_BIN_PATH" "$tftp_server" 1 1 "$uploadOnReboot" "$upload_protocol" "$upload_httplink" "ondemand" >> /opt/logs/dcmscript.log | ||||||
| result=$? | ||||||
| if [ "$result" -eq 0 ]; then | ||||||
| logUploadLog "Binary execution succeeded" | ||||||
| exit 0 | ||||||
| else | ||||||
| logUploadLog "Binary execution failed with result=$result; falling back to script" | ||||||
| sh $LOGUPLOAD_SCRIPT "$tftp_server" 1 1 "$uploadOnReboot" "$upload_protocol" "$upload_httplink" "$TriggerType" 2>/dev/null | ||||||
|
Comment on lines
+181
to
+188
|
||||||
| result=$? | ||||||
| fi | ||||||
| else | ||||||
| logUploadLog "logupload binary not found at $LOG_UPLOAD_BIN_PATH...executing script" | ||||||
| sh $LOGUPLOAD_SCRIPT "$tftp_server" 1 1 "$uploadOnReboot" "$upload_protocol" "$upload_httplink" "$TriggerType" 2>&1 | ||||||
|
Comment on lines
+188
to
+193
|
||||||
| result=$? | ||||||
| fi | ||||||
| else | ||||||
| logUploadLog "Log upload triggered from regular execution" | ||||||
| nice -n 19 sh $LOGUPLOAD_SCRIPT "$tftp_server" 1 1 "$uploadOnReboot" "$upload_protocol" "$upload_httplink" & | ||||||
| bg_pid=$! | ||||||
| wait $bg_pid | ||||||
| result=$? | ||||||
| if [ -x "$LOG_UPLOAD_BIN_PATH" ]; then | ||||||
| logUploadLog "Executing logupload binary: $LOG_UPLOAD_BIN_PATH" | ||||||
| nice -n 19 "$LOG_UPLOAD_BIN_PATH" "$tftp_server" 1 1 "$uploadOnReboot" "$upload_protocol" "$upload_httplink" >> /opt/logs/dcmscript.log & | ||||||
| bg_pid=$! | ||||||
| wait $bg_pid | ||||||
| result=$? | ||||||
| if [ "$result" -eq 0 ]; then | ||||||
| logUploadLog "Binary execution succeeded" | ||||||
| return 0 | ||||||
| else | ||||||
| logUploadLog "Binary execution failed with result=$result; falling back to script" | ||||||
| nice -n 19 sh $LOGUPLOAD_SCRIPT "$tftp_server" 1 1 "$uploadOnReboot" "$upload_protocol" "$upload_httplink" & | ||||||
|
Comment on lines
+200
to
+209
|
||||||
| nice -n 19 sh $LOGUPLOAD_SCRIPT "$tftp_server" 1 1 "$uploadOnReboot" "$upload_protocol" "$upload_httplink" & | |
| nice -n 19 sh $LOGUPLOAD_SCRIPT "$tftp_server" 1 1 "$uploadOnReboot" "$upload_protocol" "$upload_httplink" & |
Copilot
AI
Jan 23, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR title and description indicate this change is about moving bluetooth_mac update from Device Details to Bluetooth Service. However, the major changes in this file are related to log upload binary migration (adding binary execution with fallback to script). These significant log upload changes are not mentioned in the PR description at all. This appears to be unrelated functionality mixed into the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CHANGELOG.md for version 4.2.2 does not include any reference to RDKEMW-12562 (the Bluetooth Mac update changes mentioned in the PR title). The changelog references other PRs and tasks but omits the primary purpose of this PR as stated in the title and description.