mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 04:22:58 +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:
22
src/initscripts/init.d/network-trigger
Normal file
22
src/initscripts/init.d/network-trigger
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
########################################################################
|
||||
# Begin $rc_base/init.d/network-trigger
|
||||
########################################################################
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. ${rc_functions}
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
boot_mesg "Triggering network devices..."
|
||||
udevadm trigger --action="add" --subsystem-match="net"
|
||||
evaluate_retval
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: ${0} {start}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# End $rc_base/init.d/network-trigger
|
||||
Reference in New Issue
Block a user