Skip to content

Commit 9cc51e9

Browse files
committed
Add support for CCMNI interface devices
1 parent ddfd7ea commit 9cc51e9

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.bak

module/service.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ while true; do
114114
case "$iface" in
115115
wlan*) new_mode="Wi-Fi" ;;
116116
rmnet*) new_mode="Cellular" ;;
117+
ccmni*) new_mode="Cellular" ;;
117118
*) new_mode="none" ;;
118119
esac
119120

module/webroot/js/home.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function updateModuleStatus () {
1212
{
1313
active_iface = await get_active_iface();
1414
active_iface = active_iface ? active_iface : "None";
15-
active_iface_type = active_iface.startsWith("rmnet") ? "Cellular 📶" : active_iface.startsWith("wlan") ? "Wi-Fi 🛜" : "Unknown ⁉️";
15+
active_iface_type = active_iface.startsWith("rmnet") || active_iface.startsWith("ccmni") ? "Cellular 📶" : active_iface.startsWith("wlan") ? "Wi-Fi 🛜" : "Unknown ⁉️";
1616
active_algorithm = await get_active_algorithm();
1717
active_InitcwndInitrwndValue = await getInitcwndInitrwndValue();
1818
} catch (error) {

0 commit comments

Comments
 (0)