Systemd/rules
Tom Gundersen af6f0d422c udev: add network link configuration tool
This tool applies hardware specific settings to network devices before they
are announced via libudev.

Settings that will probably eventually be supported are MTU, Speed,
DuplexMode, WakeOnLan, MACAddress, MACAddressPolicy (e.g., 'hardware',
'synthetic' or 'random'), Name and NamePolicy (replacing our current
interface naming logic). This patch only introduces support for
Description, as a proof of concept.

Some of these settings may later be overriden by a network management
daemon/script. However, these tools should always listen and wait on libudev
before touching a device (listening on netlink is not enough). This is no
different from how things used to be, as we always supported changing the
network interface name from udev rules, which does not work if someone
has already started using it.

The tool is configured by .link files in /etc/net/links/ (with the usual
overriding logic in /run and /lib). The first (in lexicographical order)
matching .link file is applied to a given device, and all others are ignored.

The .link files contain a [Match] section with (currently) the keys
MACAddress, Driver, Type (see DEVTYPE in udevadm info) and Path (this
matches on the stable device path as exposed as ID_PATH, and not the
unstable DEVPATH). A .link file matches a given device if all of the
specified keys do. Currently the keys are treated as plain strings,
but some limited globbing may later be added to the keys where it
makes sense.

Example:

/etc/net/links/50-wireless.link
[Match]
MACAddress=98:f2:e4:42:c6:92
Path=pci-0000:02:00.0-bcma-0
Type=wlan

[Link]
Description=The wireless link
2013-10-26 22:09:20 +02:00
..
.gitignore move imported udev into place 2012-04-04 05:05:07 +02:00
42-usb-hid-pm.rules Drop trailing whitespace 2013-03-22 22:51:52 +01:00
50-firmware.rules udev: make firmware loading optional and disable by default 2013-03-18 15:19:51 +01:00
50-udev-default.rules rules: remove pointless MODE= settings 2013-10-21 03:49:03 +02:00
60-cdrom_id.rules udev: move all unconditionally installed rules to rules/ 2012-04-14 20:10:03 +02:00
60-keyboard.rules rules: keyboard - use builtin command 2013-07-18 14:41:11 +02:00
60-persistent-alsa.rules move imported udev into place 2012-04-04 05:05:07 +02:00
60-persistent-input.rules rules: Fix persistent input symlinks for interface 00 2012-10-11 08:21:17 +02:00
60-persistent-serial.rules move imported udev into place 2012-04-04 05:05:07 +02:00
60-persistent-storage-tape.rules move imported udev into place 2012-04-04 05:05:07 +02:00
60-persistent-storage.rules rules: there is no "ata" subsystem for ATA device 2013-01-28 03:53:33 +01:00
60-persistent-v4l.rules udev: move all unconditionally installed rules to rules/ 2012-04-14 20:10:03 +02:00
61-accelerometer.rules udev: move all unconditionally installed rules to rules/ 2012-04-14 20:10:03 +02:00
64-btrfs.rules udev: add btrfs support 2012-09-17 13:54:03 +02:00
75-net-description.rules rules: net, tty description - ask hwdb explicitly for pci data 2013-07-21 16:33:27 +02:00
75-probe_mtd.rules build-sys: make loadable module support optional 2012-11-20 19:35:27 +01:00
75-tty-description.rules rules: net, tty description - ask hwdb explicitly for pci data 2013-07-21 16:33:27 +02:00
78-sound-card.rules udev: add hardware database support 2012-10-23 16:43:32 +02:00
80-drivers.rules rules: drivers - always call kmod, even when a driver is bound to the device 2013-07-20 14:31:53 +02:00
80-net-name-slot.rules 80-net-name-slot.rules: only rename network interfaces on ACTION=="add" 2013-08-01 12:32:23 +02:00
85-net-configure-link.rules udev: add network link configuration tool 2013-10-26 22:09:20 +02:00
95-udev-late.rules move imported udev into place 2012-04-04 05:05:07 +02:00
99-systemd.rules.in rules: don't limit some of the rules to the "add" action 2013-10-16 06:14:59 +02:00
Makefile backlight: add minimal tool to save/restore screen brightness across reboots 2013-08-14 01:57:02 +02:00