We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2019-10-29 03:22:22 +0200 |
I've typed the following commands on my Ubuntu :
$ cat /etc/udev/rules.d/98-jolla.rules
SUBSYSTEM=="net", ACTION=="add|change", ENV{ID_VENDOR}=="Jolla", ENV{ID_VENDOR_ID}=="2931", RUN+="/sbin/ip address add 192.168.3.14/31 dev $env{INTERFACE}"
$ sudo udevadm control --reload
$ ifconfig usb0 | grep inet.addr
$
This rule is not working when I plug my Jolla through USB.
But if I type the sudo /sbin/ip address add ...
command manually, it works and I get :
$ ifconfig usb0 | grep inet.addr
inet addr:192.168.3.14 Bcast:0.0.0.0 Mask:255.255.255.254
Can you help me ?
2 | No.2 Revision |
I've typed the following commands on my Ubuntu :
$ cat /etc/udev/rules.d/98-jolla.rules
SUBSYSTEM=="net", ACTION=="add|change", ENV{ID_VENDOR}=="Jolla", ENV{ID_VENDOR_ID}=="2931", RUN+="/sbin/ip address add 192.168.3.14/31 dev $env{INTERFACE}"
$ sudo udevadm control --reload
$ ifconfig usb0 | grep inet.addr
$
This rule is not working when I plug my Jolla through USB.
But if I type the sudo /sbin/ip address add ...
command manually, it works and I get :
$ ifconfig usb0 | grep inet.addr
inet addr:192.168.3.14 Bcast:0.0.0.0 Mask:255.255.255.254
Can you help me ?EDIT 1 : Here is some udevadm info
output :
$ find /dev/bus/usb/ '!' -type d -mmin -5
/dev/bus/usb/001/076
$ udevadm info /dev/bus/usb/001/076 | grep ID_VENDOR
E: ID_VENDOR=Jolla
E: ID_VENDOR_ENC=Jolla
E: ID_VENDOR_FROM_DATABASE=Advanced Micro Devices, Inc.
E: ID_VENDOR_ID=2931
3 | No.3 Revision |
I've typed the following commands on my Ubuntu :
$ cat /etc/udev/rules.d/98-jolla.rules
SUBSYSTEM=="net", ACTION=="add|change", ENV{ID_VENDOR}=="Jolla", ENV{ID_VENDOR_ID}=="2931", RUN+="/sbin/ip address add 192.168.3.14/31 dev $env{INTERFACE}"
$ sudo udevadm control --reload
$ ifconfig usb0 | grep inet.addr
$
This rule is not working when I plug my Jolla through USB.
But if I type the sudo /sbin/ip address add ...
command manually, it works and I get :
$ ifconfig usb0 | grep inet.addr
inet addr:192.168.3.14 Bcast:0.0.0.0 Mask:255.255.255.254
EDIT 1 : Here is some udevadm info
output :
$ find /dev/bus/usb/ '!' ! -type d -mmin -5
/dev/bus/usb/001/076
$ udevadm info /dev/bus/usb/001/076 | grep ID_VENDOR
E: ID_VENDOR=Jolla
E: ID_VENDOR_ENC=Jolla
E: ID_VENDOR_FROM_DATABASE=Advanced Micro Devices, Inc.
E: ID_VENDOR_ID=2931
4 | retagged |
I've typed the following commands on my Ubuntu :
$ cat /etc/udev/rules.d/98-jolla.rules
SUBSYSTEM=="net", ACTION=="add|change", ENV{ID_VENDOR}=="Jolla", ENV{ID_VENDOR_ID}=="2931", RUN+="/sbin/ip address add 192.168.3.14/31 dev $env{INTERFACE}"
$ sudo udevadm control --reload
$ ifconfig usb0 | grep inet.addr
$
This rule is not working when I plug my Jolla through USB.
But if I type the sudo /sbin/ip address add ...
command manually, it works and I get :
$ ifconfig usb0 | grep inet.addr
inet addr:192.168.3.14 Bcast:0.0.0.0 Mask:255.255.255.254
EDIT 1 : Here is some udevadm info
output :
$ find /dev/bus/usb/ ! -type d -mmin -5
/dev/bus/usb/001/076
$ udevadm info /dev/bus/usb/001/076 | grep ID_VENDOR
E: ID_VENDOR=Jolla
E: ID_VENDOR_ENC=Jolla
E: ID_VENDOR_FROM_DATABASE=Advanced Micro Devices, Inc.
E: ID_VENDOR_ID=2931
5 | No.5 Revision |
I've typed the following commands on my Ubuntu :
$ cat /etc/udev/rules.d/98-jolla.rules
SUBSYSTEM=="net", ACTION=="add|change", ENV{ID_VENDOR}=="Jolla", ENV{ID_VENDOR_ID}=="2931", RUN+="/sbin/ip address add 192.168.3.14/31 dev $env{INTERFACE}"
$ sudo udevadm control --reload
$ ifconfig usb0 | grep inet.addr
$
This rule is not working when I plug my Jolla through USB.
But if I type the sudo /sbin/ip address add ...
command manually, it works and I get :
$ ifconfig usb0 | grep inet.addr
inet addr:192.168.3.14 Bcast:0.0.0.0 Mask:255.255.255.254
EDIT 1 : Here is some udevadm info
output :
$ find /dev/bus/usb/ ! -type d -mmin -5
/dev/bus/usb/001/076
$ udevadm info /dev/bus/usb/001/076 | grep ID_VENDOR
E: ID_VENDOR=Jolla
E: ID_VENDOR_ENC=Jolla
E: ID_VENDOR_FROM_DATABASE=Advanced Micro Devices, Inc.
E: ID_VENDOR_ID=2931