udev rule which triggers on a SYMLINK
up vote
0
down vote
favorite
I've a udev rule which creates some SYMLINK /dev/ftdi3
for some FTDI USB Adapter.
SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="0403", KERNELS=="1-1.4:1.0", SYMLINK+="ftdi3"
Now I create an additional rule which triggers on this device:
SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="0403", KERNELS=="1-1.4:1.0", ENV{SYSTEMD_WANTS}="serial-getty@ftdi3.service"
Works fine.
For better structure of my udev rule files, I'm looking for something like a rule where I can reference the SYMLINK like this:
???LINKNAME???=="ftdi3", ENV{SYSTEMD_WANTS}="serial-getty@ftdi3.service"
Is this possible? How?
systemd udev
add a comment |
up vote
0
down vote
favorite
I've a udev rule which creates some SYMLINK /dev/ftdi3
for some FTDI USB Adapter.
SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="0403", KERNELS=="1-1.4:1.0", SYMLINK+="ftdi3"
Now I create an additional rule which triggers on this device:
SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="0403", KERNELS=="1-1.4:1.0", ENV{SYSTEMD_WANTS}="serial-getty@ftdi3.service"
Works fine.
For better structure of my udev rule files, I'm looking for something like a rule where I can reference the SYMLINK like this:
???LINKNAME???=="ftdi3", ENV{SYSTEMD_WANTS}="serial-getty@ftdi3.service"
Is this possible? How?
systemd udev
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've a udev rule which creates some SYMLINK /dev/ftdi3
for some FTDI USB Adapter.
SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="0403", KERNELS=="1-1.4:1.0", SYMLINK+="ftdi3"
Now I create an additional rule which triggers on this device:
SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="0403", KERNELS=="1-1.4:1.0", ENV{SYSTEMD_WANTS}="serial-getty@ftdi3.service"
Works fine.
For better structure of my udev rule files, I'm looking for something like a rule where I can reference the SYMLINK like this:
???LINKNAME???=="ftdi3", ENV{SYSTEMD_WANTS}="serial-getty@ftdi3.service"
Is this possible? How?
systemd udev
I've a udev rule which creates some SYMLINK /dev/ftdi3
for some FTDI USB Adapter.
SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="0403", KERNELS=="1-1.4:1.0", SYMLINK+="ftdi3"
Now I create an additional rule which triggers on this device:
SUBSYSTEM=="tty", ENV{ID_VENDOR_ID}=="0403", KERNELS=="1-1.4:1.0", ENV{SYSTEMD_WANTS}="serial-getty@ftdi3.service"
Works fine.
For better structure of my udev rule files, I'm looking for something like a rule where I can reference the SYMLINK like this:
???LINKNAME???=="ftdi3", ENV{SYSTEMD_WANTS}="serial-getty@ftdi3.service"
Is this possible? How?
systemd udev
systemd udev
asked Nov 8 at 8:28
powerpete
659417
659417
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53203897%2fudev-rule-which-triggers-on-a-symlink%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password