-
Notifications
You must be signed in to change notification settings - Fork 6
Release/4.0.0 #357
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
Release/4.0.0 #357
Changes from all commits
417596d
528ddce
515a568
79609a1
3dd2339
5b5950b
15cd4a1
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -19,11 +19,13 @@ | |||||
| # limitations under the License. | ||||||
| ############################################################################## | ||||||
|
|
||||||
| WIFI_WPA_SUPPLICANT_CONF="/opt/secure/wifi/wpa_supplicant.conf" | ||||||
| RDK_PROFILE=$(grep "RDK_PROFILE" /etc/device.properties | cut -d '=' -f 2) | ||||||
| RDKV_SUPP_CONF="/opt/secure/wifi/wpa_supplicant.conf" | ||||||
|
|
||||||
| if [ -f $WIFI_WPA_SUPPLICANT_CONF ]; then | ||||||
| SSID=$(cat $WIFI_WPA_SUPPLICANT_CONF | grep -w ssid= | cut -d '"' -f 2) | ||||||
| PSK_LINE=$(grep psk= "$WIFI_WPA_SUPPLICANT_CONF") | ||||||
|
|
||||||
| if [ -f $RDKV_SUPP_CONF ]; then | ||||||
| SSID=$(cat $RDKV_SUPP_CONF | grep -w ssid= | cut -d '"' -f 2) | ||||||
| PSK_LINE=$(grep psk= "$RDKV_SUPP_CONF") | ||||||
|
|
||||||
| # Case 1: Quoted passphrase | ||||||
| if [[ "$PSK_LINE" =~ psk=\"(.+)\" ]]; then | ||||||
|
|
@@ -37,6 +39,35 @@ if [ -f $WIFI_WPA_SUPPLICANT_CONF ]; then | |||||
| else | ||||||
| PSK="" | ||||||
| fi | ||||||
| echo "`/bin/timestamp` :$0: Removed nmcli SSID connect" >> /opt/logs/NMMonitor.log | ||||||
| sed -i '/network={/,/}/d' /opt/secure/wifi/wpa_supplicant.conf | ||||||
| fi | ||||||
|
|
||||||
| if [ -z $SSID ]; then | ||||||
| echo "`/bin/timestamp` :$0: No SSID found in supplicant conf" >> /opt/logs/NMMonitor.log | ||||||
| echo "`/bin/timestamp` :$0: Trying with previously configured settings" >> /opt/logs/NMMonitor.log | ||||||
|
|
||||||
| if [ ! -d /opt/secure/NetworkManager/system-connections ]; then | ||||||
| mkdir -p /opt/secure/NetworkManager/system-connections | ||||||
| fi | ||||||
| if [ -d /opt/NetworkManager/system-connections ]; then | ||||||
| cp /opt/NetworkManager/system-connections/* /opt/secure/NetworkManager/system-connections/ | ||||||
|
||||||
| cp /opt/NetworkManager/system-connections/* /opt/secure/NetworkManager/system-connections/ | |
| cp -r /opt/NetworkManager/system-connections/. /opt/secure/NetworkManager/system-connections/ 2>/dev/null || true |
Copilot
AI
Nov 3, 2025
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.
Corrected spelling of 'NM_Bootsrtap' to 'NM_Bootstrap'.
| echo "`/bin/timestamp` :$0: Migrating Wifi credentials for TVs from NM_Bootsrtap" >> /opt/logs/NMMonitor.log | |
| echo "`/bin/timestamp` :$0: Migrating Wifi credentials for TVs from NM_Bootstrap" >> /opt/logs/NMMonitor.log |
Copilot
AI
Nov 3, 2025
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.
Variable $PSK should be quoted to properly handle empty values. The current syntax [ -z $PSK ] will fail if PSK is unset or contains whitespace. Use [ -z \"$PSK\" ] instead.
| if [ -z $PSK ]; then | |
| if [ -z "$PSK" ]; then |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -107,15 +107,9 @@ interfaceName=$1 | |||
| interfaceStatus=$2 | ||||
|
|
||||
| if [ "$interfaceStatus" = "up" ]; then | ||||
| /usr/bin/nm-online -q -t 60 # If Network manager is not online wait for 60 sec. TODO: Revisit this during connectivity check enable time | ||||
|
|
||||
|
||||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| [Unit] | ||
|
Check failure on line 1 in systemd_units/NetworkManager_ecfs.conf
|
||
| After=securemount.service | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| [Unit] | ||
| Description=Log Internet connectivity and Trigger network target | ||
| After=dbus.service | ||
|
|
||
| [Service] | ||
| Type=oneshot | ||
| ExecStartPre=/bin/touch /tmp/connectivity_check_done | ||
| ExecStart=/lib/rdk/logMilestone.sh "INTERNET_FULLY_CONNECTED" |
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.
Variable
$SSIDshould be quoted to properly handle empty values. The current syntax[ -z $SSID ]will fail if SSID is unset or contains whitespace. Use[ -z \"$SSID\" ]instead.