mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 04:05:53 +02:00
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, ...).
4 lines
238 B
Plaintext
4 lines
238 B
Plaintext
# 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"
|