Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
1. Change in /etc/dcm.properties

DCM_LOG_SERVER_URL=http://<xconf_simulator_ip>:<port>/xconf/logUploader/getSettings/ 

2. cp /etc/dcm.properties /opt/dcm.properties 

3. /etc/device.properties

RDK_EMULATOR=false
 

4. Added these 2 functionsChange required in /lib/rdk/DCMscriptutils.sh and renamed calling of function getEstbMacAddress to getEStbMacAddress (Somehow getEstbMacAddress returns blank even if re-implemented)

getEStbMacAddress()
{
     ifconfig | grep $ESTB_INTERFACE | tr -s ' ' | cut -d ' ' -f5
}

 for returning MAC address correctly

getEstbMacAddress()                                                  
{ 
- - - mac=`awk < /proc/cmdline '{ for (i=1; i<=NF; i++) print $i}' | grep comcast[\.]stbmacaddr | cut -d'=' -f 2`
+++ mac=`awk < /proc/cmdline '{ for (i=1; i<=NF; i++) print $i}' | grep [\.]macaddr | cut -d'=' -f 2`
echo $mac          
}
 
5. Added this function in /lib/rdk/DCMscript.sh 

getModel()
{
    echo "RPI"
}

56. Change  line 380 in /lib/rdk/DCMscript.sh 

nice sh $RDK_PATH/uploadSTBLogs.sh $tftp_server 1 1 1 $upload_protocol $upload_httplink & to

sh $RDK_PATH/uploadSTBLogs.sh $tftp_server 1 1 1 $upload_protocol $upload_httplink & 

 as "nice: Command not found"


 systemctl stop dcm-log

systemctl start dcm-log

This invokes /lib/rdk/StartDCM.sh which further invokes /lib/rdk/DCMscript.sh

...