[root@stlinux]#sed -i -e '1d /921600/ittyUSB2' /etc/ppp/peers/3gZTE
что-то во втором коде неправильно
[root@stlinux]#/etc/ppp/pppd -- call 3gZTE
/etc/ppp/pppd: unrecognized option '--'
pppd version 2.4.5
Usage: /etc/ppp/pppd [ options ], where options are:
<device> Communicate over the named device
<speed> Set the baud rate to <speed>
<loc>:<rem> Set the local and/or remote interface IP
addresses. Either one may be omitted.
asyncmap <n> Set the desired async map to hex <n>
auth Require authentication from peer
connect <p> Invoke shell command <p> to set up the serial line
crtscts Use hardware RTS/CTS flow control
defaultroute Add default route through interface
file <f> Take options from file <f>
modem Use modem control lines
mru <n> Set MRU value to <n> for negotiation
See pppd(
for more options.
[root@stlinux]#/etc/ppp/pppd call 3gZTE
Connect script failed
Connect script failed
[root@stlinux]#dmesg | grep ttyUSB
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3
[root@stlinux]#