From 7d06d0de7b7ec2f6a8ccf4b7c179f2538780beb1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 28 Jun 2018 11:15:29 +0100 Subject: [PATCH] AWS: Restart udev to rename network interfaces Signed-off-by: Michael Tremer --- src/initscripts/helper/aws-setup | 3 +++ src/initscripts/system/udev | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/initscripts/helper/aws-setup b/src/initscripts/helper/aws-setup index 19edb2b921..3db888fe25 100644 --- a/src/initscripts/helper/aws-setup +++ b/src/initscripts/helper/aws-setup @@ -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 diff --git a/src/initscripts/system/udev b/src/initscripts/system/udev index 6cf8771eaf..5e0d9bdfdb 100644 --- a/src/initscripts/system/udev +++ b/src/initscripts/system/udev @@ -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 -- 2.39.5