mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 16:32:59 +02:00
AWS: Restart udev to rename network interfaces
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -202,6 +202,9 @@ import_aws_configuration() {
|
||||
|
||||
# All done
|
||||
echo_ok
|
||||
|
||||
# Restart udev to rename network interfaces
|
||||
/etc/init.d/udev restart
|
||||
}
|
||||
|
||||
case "${reason}" in
|
||||
|
||||
@@ -60,7 +60,8 @@ case "${1}" in
|
||||
|
||||
# Start the udev daemon to continually watch for, and act on,
|
||||
# uevents
|
||||
/sbin/udevd --daemon
|
||||
boot_mesg "Starting udev daemon..."
|
||||
loadproc udevd --daemon
|
||||
|
||||
# Now traverse /sys in order to "coldplug" devices that have
|
||||
# already been discovered
|
||||
@@ -72,6 +73,13 @@ case "${1}" in
|
||||
|
||||
;;
|
||||
|
||||
restart)
|
||||
boot_mesg "Stopping udev daemon..."
|
||||
killproc udevd
|
||||
|
||||
exec $0 start
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage ${0} {start}"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user