Jump to content

Recommended Posts

Posted

помогите пожалуста заставить работать исполняемый файл с командой interface UsbQmi0 tty send AT^LTE_LOCK для usb модема.

Cоздал через WinSCP файл ATI(права дал 0771) по совету опытных, по пути /opt/etc/ndm/ifstatechanged.d/

#!/bin/sh

[ "$1" == "hook" ] || exit 0
[ "$id" == "qmi_br0" ] || exit 0

case ${change}-${connected}-${link}-${up} in
    link-no-down-down)
         #
    ;;
    link-yes-up-up)
        ndmc -c interface UsbQmi0 tty send AT^LTE_LOCK
     ;;
esac

exit 0

но при перезагрузки роутера исполнение не просходит😶

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.