mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-01 15:52:55 +02:00
network: Configure device names from /var/ipfire/ethernet/settings
Instead of creating a copy of the configuration values and for better extensibility, we will have udev execute a script that parses /var/ipfire/ethernet/settings and will return the correct name of the corresponding device (green0, blue0, ...).
This commit is contained in:
3
config/udev/60-net.rules
Normal file
3
config/udev/60-net.rules
Normal file
@@ -0,0 +1,3 @@
|
||||
# Call a script that checks for the right name of the new device.
|
||||
# If it matches the configuration it will be renamed accordingly.
|
||||
ACTION=="add", SUBSYSTEM=="net", PROGRAM="/lib/udev/network-hotplug-rename", RESULT=="?*", NAME="$result"
|
||||
Reference in New Issue
Block a user