-
Notifications
You must be signed in to change notification settings - Fork 6
WNCXIONE-530: Synching changes from support/2.2.0 branch. #350
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
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 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -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 | ||||||||||||||
|
nhanasi marked this conversation as resolved.
|
||||||||||||||
| 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/ | ||||||||||||||
| rm -rf /opt/NetworkManager/system-connections/* | ||||||||||||||
|
Comment on lines
+53
to
+54
|
||||||||||||||
| cp /opt/NetworkManager/system-connections/* /opt/secure/NetworkManager/system-connections/ | |
| rm -rf /opt/NetworkManager/system-connections/* | |
| if [ -e /opt/NetworkManager/system-connections/* ]; then | |
| cp /opt/NetworkManager/system-connections/* /opt/secure/NetworkManager/system-connections/ | |
| rm -rf /opt/NetworkManager/system-connections/* | |
| fi |
Copilot
AI
Oct 28, 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 |
Uh oh!
There was an error while loading. Please reload this page.