-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wwan: Add FCC-unlock tool from Lenovo
This tool is able to perform FCC unlock procedure on devices: * ThinkEdge SE30 with modem Quectel EM160 * ThinkEdge SE10 with modem Quectel EM05-G Signed-off-by: Milan Lenco <milan@zededa.com>
- Loading branch information
1 parent
c854b7f
commit 2e935ae
Showing
5 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
# Copyright (c) 2024 Zededa, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Quectel EM160R-GL FCC Unlock Script | ||
|
||
ARCH="$(uname -m)" | ||
VENDOR="$(cat /sys/class/dmi/id/sys_vendor)" | ||
PRODUCT="$(cat /sys/class/dmi/id/product_family)" | ||
|
||
# Fallback to the open-source FCC unlock script when vendor-specific unlock tool | ||
# is not available or fails. | ||
# shellcheck disable=SC2015 | ||
[ "$ARCH" = "x86_64" ] && [ "$VENDOR" = "LENOVO" ] && [ "$PRODUCT" = "ThinkEdge SE30" ] && | ||
/opt/lenovo/DPR_Fcc_unlock_service || /etc/ModemManager/fcc-unlock.d/1eac "$@" | ||
|
||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
# Copyright (c) 2024 Zededa, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Quectel EM05-G FCC Unlock Script | ||
|
||
ARCH="$(uname -m)" | ||
VENDOR="$(cat /sys/class/dmi/id/sys_vendor)" | ||
PRODUCT="$(cat /sys/class/dmi/id/product_family)" | ||
|
||
# Fallback to the open-source FCC unlock script when vendor-specific unlock tool | ||
# is not available or fails. | ||
# shellcheck disable=SC2015 | ||
[ "$ARCH" = "x86_64" ] && [ "$VENDOR" = "LENOVO" ] && [ "$PRODUCT" = "ThinkEdge SE10" ] && | ||
/opt/lenovo/DPR_Fcc_unlock_service || /etc/ModemManager/fcc-unlock.d/2c7c "$@" | ||
|
||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
# Copyright (c) 2024 Zededa, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Quectel EM05-G Smart Gateway FCC Unlock Script | ||
|
||
ARCH="$(uname -m)" | ||
VENDOR="$(cat /sys/class/dmi/id/sys_vendor)" | ||
PRODUCT="$(cat /sys/class/dmi/id/product_family)" | ||
|
||
# Fallback to the open-source FCC unlock script when vendor-specific unlock tool | ||
# is not available or fails. | ||
# shellcheck disable=SC2015 | ||
[ "$ARCH" = "x86_64" ] && [ "$VENDOR" = "LENOVO" ] && [ "$PRODUCT" = "ThinkEdge SE10" ] && | ||
/opt/lenovo/DPR_Fcc_unlock_service || /etc/ModemManager/fcc-unlock.d/2c7c "$@" | ||
|
||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters