Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/rdk/Start_MaintenanceTasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ runMaintenanceRFCTask()
rfcLog "No RFC Bin/ Script"
result=-1
fi
touch /tmp/.RFCsynccomplete
# Handle both success (0) and acceptable warning (1) exit codes, flag other results as errors
if [ "$result" -ne 0 ] && [ "$result" -ne 1 ]; then
eventSender "MaintenanceMGR" "$MAINT_RFC_ERROR"
Expand Down
15 changes: 4 additions & 11 deletions lib/rdk/start_ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,12 @@ checkForInterface()
fi
}

if [ "BUILD_TYPE" != "dev" ]; then
DEVICETYPE=$(tr181 -d Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Identity.DeviceType 2>&1 > /dev/null)
if [ "$DEVICETYPE" = "TEST" ]; then
USE_DEVKEYS="-f authorized_keys_dev"
echo " dropbear using dev authorization keys"
else
USE_DEVKEYS=""
echo " dropbear using prod authorization keys"
fi
else
USE_DEVKEYS="-f authorized_keys_dev"
DEVICETYPE=$(tr181 -g Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Identity.DeviceType 2>&1)
if [ "$BUILD_TYPE" = "prod" ] && [ "$DEVICETYPE" = "PROD" ]; then
USE_DEVKEYS=""
echo " Build type is dev , use dev authorization keys by default"
fi
Comment thread
NareshM1702 marked this conversation as resolved.

/bin/systemctl set-environment USE_DEVKEYS="$USE_DEVKEYS"

#RFC check for MOCA SSH enable/not.
Expand Down