root@raspberrypi:~# systemctl status vodafone
â vodafone.service - start vodafone dongle
Loaded: loaded (/lib/systemd/system/vodafone.service; enabled)
Active: failed (Result: exit-code) since Mon 2016-12-19 13:50:54
EET; 1min 53s ago
Process: 804 ExecStart=/usr/sbin/pppd /dev/ttyUSB0 call vodafone
(code=exited, status=2)
Main PID: 804 (code=exited, status=2)
Dec 19 13:50:54 raspberrypi pppd[804]: addresses. Either one may be
omitted.
Dec 19 13:50:54 raspberrypi pppd[804]: asyncmap <n> Set the
desired async map to hex <n>
Dec 19 13:50:54 raspberrypi pppd[804]: auth Require
authentication from peer
Dec 19 13:50:54 raspberrypi pppd[804]: connect <p> Invoke shell
command <p> to set up the serial line
Dec 19 13:50:54 raspberrypi pppd[804]: crtscts Use
hardware RTS/CTS flow control
Dec 19 13:50:54 raspberrypi pppd[804]: defaultroute Add default
route through interface
Dec 19 13:50:54 raspberrypi pppd[804]: file <f> Take options from
file <f>
Dec 19 13:50:54 raspberrypi pppd[804]: modem Use modem
control lines
Dec 19 13:50:54 raspberrypi pppd[804]: mru <n> Set MRU
value to <n> for negotiation
Dec 19 13:50:54 raspberrypi pppd[804]: See pppd(8) for more options.
root@raspberrypi:~#
*lansat apoi de mana **
*
root@raspberrypi:~# service vodafone start
root@raspberrypi:~# systemctl status vodafone
â vodafone.service - start vodafone dongle
Loaded: loaded (/lib/systemd/system/vodafone.service; enabled)
Active: active (running) since Mon 2016-12-19 13:54:28 EET; 5s ago
Main PID: 1304 (pppd)
CGroup: /system.slice/vodafone.service
ââ1304 /usr/sbin/pppd /dev/ttyUSB0 call vodafone
Dec 19 13:54:32 raspberrypi pppd[1304]: rcvd [IPCP ConfAck id=0x5 <addr
10.112.65.249> <ms-dns1 81.12.128.206> <ms-dns2 81.12.132.206>]
Dec 19 13:54:32 raspberrypi pppd[1304]: Could not determine remote IP
address: defaulting to 10.64.64.64
Dec 19 13:54:32 raspberrypi pppd[1304]: replacing old default route to
eth0 [192.168.100.1]
Dec 19 13:54:32 raspberrypi pppd[1304]: local IP address 10.112.65.249
Dec 19 13:54:32 raspberrypi pppd[1304]: remote IP address 10.64.64.64
Dec 19 13:54:32 raspberrypi pppd[1304]: primary DNS address 81.12.128.206
Dec 19 13:54:32 raspberrypi pppd[1304]: secondary DNS address 81.12.132.206
Dec 19 13:54:32 raspberrypi pppd[1304]: Script /etc/ppp/ip-up started
(pid 1315)
Dec 19 13:54:32 raspberrypi pppd[1304]: Script /etc/ppp/ip-up finished
(pid 1315), status = 0x0
Dec 19 13:54:32 raspberrypi pppd[1304]: Script /etc/ppp/ip-up finished
(pid 1315), status = 0x0
root@raspberrypi:~#
On 12/19/2016 1:49 PM, Adrian Popa wrote:
> Poți vedea dacă încearcă să-l pornească cu
> systemctl status vodafone
>
> Eu aș încerca cu Before=multi-user.target în loc de after, sau comentează
> partea de WantedBy.
>
> On Mon, Dec 19, 2016 at 12:42 PM, Paul Lacatus (Personal) <
> [email protected]> wrote:
>
>>
>> On 12/19/2016 12:29 PM, Claudiu Nicolaie CISMARU wrote:
>>>> [Unit]
>>>> Description=Start vodafone dongle
>>>> After=multi-user.target
>>>>
>>>> [Service]
>>>> Type=idle
>>>> ExecStart=/usr/sbin/pppd /dev/ttyUSB0 call vodafone
>>>>
>>>> [Install]
>>>> WantedBy=multi-user.target
>>>>
>>>> Nu imi ridica interfata pppo la boot dar daca ii dau service vodafone
>>>> start totul e ok
>>>>
>>>> Unde gresesc ?
>>> systemctl enable vodafone.service ai dat ?
>>>
>> da.
>>
>> problema cred ca vine de la usb_modeswitch care nu creeaza /dev/ttyUSB0
>> pana cand il cauta serviciul vodafone.service
>> _______________________________________________
>> RLUG mailing list
>> [email protected]
>> http://lists.lug.ro/mailman/listinfo/rlug
>>
> _______________________________________________
> RLUG mailing list
> [email protected]
> http://lists.lug.ro/mailman/listinfo/rlug
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug