Re: Debian jessie systemd si stick vodafone

"Paul Lacatus (Personal)" <[email protected]>
Newsgroups gmane.org.user-groups.rlug.general
Message-ID <[email protected]>
am facut fisierul de serviciu asa :

root@raspberrypi:~# cat /lib/systemd/system/vodafone.service
[Unit]
Description=start vodafone dongle
Before=multi-user.target

[Service]
Type=idle
ExecStart=/usr/sbin/pppd /dev/ttyUSB0 call vodafone
Restart = always
RestartSec=20

[Install]
WantedBy=multi-user.target

Acum porneste la boot . Nu sunt sigur daca e ok . Nu am suficienta 
experienta su systemd


On 12/19/2016 2:08 PM, Mihai Badici wrote:
> On Monday 19 December 2016 13:55:35 Paul Lacatus wrote:
>> 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)
> Ca sa fiu mai precis, udev ruleaza atunci cand gaseste un dongle din lista lui,
> scriptul
> /lib/udev/usb_modeswitch
> El iti face comutarea storage->modem; comutarea trebuie sa se faca si dacă nu
> te conectezi.
> in /lib/udev/rules.d trebuie sa ai o definitie pt modeswitch, la mine e 40-
> usb_modeswitch.rules.  Vezi daca device-ul tau e in lista de acolo si ce
> ruleaza si ajusteaza dupa nevoi. Daca vrei poti sa pornesti si conectarea de
> aici :)
> _______________________________________________
> RLUG mailing list
> [email protected]
> http://lists.lug.ro/mailman/listinfo/rlug

_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.