Skip to content

Commit

Permalink
ncm: ifup ifname before gcom call
Browse files Browse the repository at this point in the history
  • Loading branch information
ptpt52 committed Jun 20, 2023
1 parent 977f5a8 commit 3d16769
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/network/utils/comgt/files/ncm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ proto_ncm_setup() {
return 1
}

ifconfig "$ifname" up

start=$(date +%s)
while true; do
manufacturer=$(gcom -d "$device" -s /etc/gcom/getcardinfo.gcom | awk 'NF && $0 !~ /AT\+CGMI/ { sub(/\+CGMI: /,""); print tolower($1); exit; }')
Expand Down

0 comments on commit 3d16769

Please sign in to comment.