Skip to content
Merged
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
2 changes: 1 addition & 1 deletion run_l2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if [ ! -z "$pid" ]; then
kill -9 `pidof tr69hostif`
fi

/usr/local/bin/tr69hostif -c /etc/mgrlist.conf -d /etc/debug.ini -p 10999 -s 11999 | tee /opt/logs/tr69hostIf.log.0 &
/usr/local/bin/tr69hostif -c /etc/mgrlist.conf -p 10999 -s 11999 | tee /opt/logs/tr69hostIf.log.0 &

pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/bootup_sequence.json test/functional-tests/tests/test_bootup_sequence.py
pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/handlers_communications.json test/functional-tests/tests/test_handlers_communications.py
Expand Down
23 changes: 2 additions & 21 deletions src/hostif/src/hostIf_main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:

Check failure on line 3 in src/hostif/src/hostIf_main.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'src/hostif/src/hostIf_main.cpp' (Match: rdk/components/generic/tr69hostif/rdk/components/generic/tr69hostif/1812, 672 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/tr69hostif/+archive/RDK-DEV-1812.tar.gz, file: src/hostif/src/hostIf_main.cpp)

Check failure on line 3 in src/hostif/src/hostIf_main.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'src/hostif/src/hostIf_main.cpp' (Match: rdk/components/generic/tr69hostif/rdk/components/generic/tr69hostif/1905, 672 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/tr69hostif/+archive/rdk-dev-1905.tar.gz, file: src/hostif/src/hostIf_main.cpp)

Check failure on line 3 in src/hostif/src/hostIf_main.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'src/hostif/src/hostIf_main.cpp' (Match: rdk/components/generic/tr69hostif/rdk/components/generic/tr69hostif/2011, 672 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/tr69hostif/+archive/RDK-DEV-2011.tar.gz, file: src/hostif/src/hostIf_main.cpp)

Check failure on line 3 in src/hostif/src/hostIf_main.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'src/hostif/src/hostIf_main.cpp' (Match: rdk/components/generic/tr69hostif/rdk/components/generic/tr69hostif/2012, 672 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/tr69hostif/+archive/rdk-dev-2012.tar.gz, file: src/hostif/src/hostIf_main.cpp)
*
* Copyright 2016 RDK Management
*
Expand Down Expand Up @@ -220,8 +220,6 @@
#ifdef WEBPA_RFC_ENABLED
bool retVal=false;
#endif
const char* debugConfigFile = NULL;
const char* webpaNotifyConfigFile = NULL;
//------------------------------------------------------------------------------
// Signal handlers:
//------------------------------------------------------------------------------
Expand All @@ -240,8 +238,6 @@
#ifndef NEW_HTTP_SERVER_DISABLE
{"httpserverport", required_argument, 0, 's'},
#endif
{"debugconfig", required_argument, 0, 'd'},
{"notifyconfig", required_argument, 0, 'w'},
{0, 0, 0, 0}
};

Expand Down Expand Up @@ -273,19 +269,6 @@
}
break;

case 'd':
if(optarg)
{
debugConfigFile = optarg;
}
break;
case 'w':
if(optarg)
{
webpaNotifyConfigFile = optarg;
}
break;

case 'p':
if(optarg)
{
Expand All @@ -310,7 +293,7 @@
}

/* Enable RDK logger.*/
if(rdk_logger_init(debugConfigFile) == 0) rdk_logger_enabled = 1;
if(rdk_logger_init(0 == access("/opt/debug.ini", R_OK) ? "/opt/debug.ini" : "/etc/debug.ini") == 0) rdk_logger_enabled = 1;
#ifdef T2_EVENT_ENABLED
t2_init(const_cast<char*>("tr69hostif"));
#endif
Expand Down Expand Up @@ -381,8 +364,6 @@
RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"g_thread NOT supported\n");
}
#endif
/* Enable RDK logger.*/
if(rdk_logger_init(debugConfigFile) == 0) rdk_logger_enabled = 1;

#if defined(USE_WIFI_PROFILE)
/* Perform the necessary operations to initialise the WiFi device */
Expand Down Expand Up @@ -496,7 +477,7 @@
//------------------------------------------------------------------------------

RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"Starting WEBPA Parodus Connections\n");
libpd_set_notifyConfigFile(webpaNotifyConfigFile);
libpd_set_notifyConfigFile(0 == access("/opt/notify_webpa_cfg.json", R_OK) ? "/opt/notify_webpa_cfg.json" : "/etc/notify_webpa_cfg.json");
if(0 == pthread_create(&parodus_init_tid, NULL, libpd_client_mgr, NULL))
{
RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,"Initiating Connection with PARODUS success.. \n");
Expand Down
3 changes: 1 addition & 2 deletions tr69hostif.service
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ Type=notify
SyslogIdentifier="tr69hostif"
EnvironmentFile=/etc/device.properties
ExecStartPre=/bin/mkdir -p /opt/tr-181
ExecStartPre=/bin/sh -c '/lib/rdk/opt-override.sh'
ExecStart=/usr/bin/tr69hostif -c /etc/mgrlist.conf -p 10999 -s 11999 -d $DEBUGINIFILE -w $WEBPANOTIFYINCFG
ExecStart=/usr/bin/tr69hostif -c /etc/mgrlist.conf -p 10999 -s 11999
ExecStop=/bin/kill -15 $MAINPID
RestartSec=10s
Restart=always
Expand Down
3 changes: 1 addition & 2 deletions tr69hostif_no_new_http_server.service
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ Type=notify
SyslogIdentifier="tr69hostif"
EnvironmentFile=/etc/device.properties
ExecStartPre=/bin/mkdir -p /opt/tr-181
ExecStartPre=/bin/sh -c '/lib/rdk/opt-override.sh'
ExecStart=/usr/bin/tr69hostif -c /etc/mgrlist.conf -p 10999 -d $DEBUGINIFILE -w $WEBPANOTIFYINCFG
ExecStart=/usr/bin/tr69hostif -c /etc/mgrlist.conf -p 10999
ExecStop=/bin/kill -15 $MAINPID
Restart=always

Expand Down
Loading