diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2023-02-10 14:42:47 +0200 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2023-02-10 09:23:59 -0600 |
commit | cfcae699e62a9272d6dc1529367a0fea2485ba5d (patch) | |
tree | 7cf911edcd85daea7d99c87a3d52d3c596032ca3 /recipes-core/udev/eudev/cellular_radios.sh | |
parent | 0e5564fedb582bd714b8166eac0219701577800b (diff) | |
download | meta-mlinux-cfcae699e62a9272d6dc1529367a0fea2485ba5d.tar.gz meta-mlinux-cfcae699e62a9272d6dc1529367a0fea2485ba5d.tar.bz2 meta-mlinux-cfcae699e62a9272d6dc1529367a0fea2485ba5d.zip |
[GP-1733] Disable echo on /dev/modem_at1
Disable the "echo" terminos option for /dev/modem_at1. This change is mandatory
for Sequans, becase the Sequans radios do not tolerate garbage in their input.
Diffstat (limited to 'recipes-core/udev/eudev/cellular_radios.sh')
-rw-r--r-- | recipes-core/udev/eudev/cellular_radios.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-core/udev/eudev/cellular_radios.sh b/recipes-core/udev/eudev/cellular_radios.sh index cb9258b..ee0ba2e 100644 --- a/recipes-core/udev/eudev/cellular_radios.sh +++ b/recipes-core/udev/eudev/cellular_radios.sh @@ -13,3 +13,8 @@ if [[ -f $READYFILE ]] ; then echo 1 >$READYFILE fi +# Disable echo for modem_at1. Mandatory for Sequans +STTY_PATH=/bin/stty +if [[ -x "$STTY_PATH" && -n "$DEVNAME" ]]; then + "$STTY_PATH" -echo -echoe -echok -echoctl -echoke -F "$DEVNAME" +fi |