mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +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:
9
lfs/udev
9
lfs/udev
@@ -93,9 +93,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
rm -f /lib/udev/rules.d/75-persistent-net-generator.rules
|
||||
rm -f /lib/udev/rules.d/80-net-name-slot.rules
|
||||
|
||||
# Create rule file for the setup
|
||||
touch /etc/udev/rules.d/30-persistent-network.rules
|
||||
|
||||
# Blacklist some modules
|
||||
cp -vf $(DIR_SRC)/config/udev/blacklist.conf /etc/modprobe.d/blacklist.conf
|
||||
|
||||
@@ -107,6 +104,12 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
install -v -m 644 $(DIR_SRC)/config/udev/25-alsa.rules \
|
||||
/lib/udev/rules.d
|
||||
|
||||
# Install network rules.
|
||||
install -v -m 755 $(DIR_SRC)/config/udev/network-hotplug-rename \
|
||||
/lib/udev/network-hotplug-rename
|
||||
install -v -m 644 $(DIR_SRC)/config/udev/60-net.rules \
|
||||
/lib/udev/rules.d
|
||||
|
||||
# Install hwrng rules.
|
||||
install -v -m 644 $(DIR_SRC)/config/udev/90-hwrng.rules \
|
||||
/lib/udev/rules.d
|
||||
|
||||
Reference in New Issue
Block a user