Re: [PATCH 1/1] UDEV - Add 'udevlom' command line param to start_udev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/10/2010 05:32 PM, Harald Hoyer wrote:
On 11/03/2010 05:55 PM, Narendra_K@xxxxxxxx wrote:
Hello,

This patch allows users to specify if they want the onboard network
interfaces to be renamed to lomN by implementing a command line param
'udevlom'.

From: Narendra K<narendra_k@xxxxxxxx>
Subject: [PATCH] UDEV - Add 'udevlom' command line param to start_udev

This patch implements 'udevlom' command line parameter, which
when passed, results in onboard network interfaces getting
renamed to lomN.

Signed-off-by: Narendra K<narendra_k@xxxxxxxx>
---
start_udev | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/start_udev b/start_udev
index 49fc286..57d60c9 100755
--- a/start_udev
+++ b/start_udev
@@ -32,6 +32,7 @@ export TZ=/etc/localtime
. /etc/init.d/functions

prog=udev
+cmdline=`cat /proc/cmdline`

touch_recursive() {
( cd $1;
@@ -60,6 +61,10 @@ fi

ret=$[$ret + $?]

+if strstr "$cmdline" udevlom; then
+ /sbin/udevadm control --env=UDEVLOM="y"
+fi
+
/sbin/udevadm trigger --type=subsystems --action=add
/sbin/udevadm trigger --type=devices --action=add
/sbin/udevadm settle

start_udev is obsolete with the use of systemd service files anyway in Fedora>=15

not saying that we really should use "udevlom" on the kernel command line, but you could use:

IMPORT{cmdline}="udevlom"
KERNEL="eth*", ENV{udevlom}==1, ....
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux