mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13: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:
@@ -176,6 +176,7 @@ $(TARGET) :
|
||||
ln -sf ../init.d/firstsetup /etc/rc.d/rcsysinit.d/S75firstsetup
|
||||
ln -sf ../init.d/localnet /etc/rc.d/rcsysinit.d/S80localnet
|
||||
ln -sf ../init.d/firewall /etc/rc.d/rcsysinit.d/S85firewall
|
||||
ln -sf ../init.d/network-trigger /etc/rc.d/rcsysinit.d/S90network-trigger
|
||||
ln -sf ../init.d/network-vlans /etc/rc.d/rcsysinit.d/S91network-vlans
|
||||
ln -sf ../init.d/rngd /etc/rc.d/rcsysinit.d/S92rngd
|
||||
ln -sf ../init.d/wlanclient /etc/rc.d/rc0.d/K82wlanclient
|
||||
|
||||
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