netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] UDEV - Add 'udevlom' command line param to start_udev
@ 2010-11-03 16:55 Narendra_K
  2010-11-03 18:05 ` Greg KH
  2010-11-10 16:32 ` Harald Hoyer
  0 siblings, 2 replies; 16+ messages in thread
From: Narendra_K @ 2010-11-03 16:55 UTC (permalink / raw)
  To: linux-hotplug; +Cc: netdev, Matt_Domsch, Jordan_Hargrave, Charles_Rose

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@dell.com>
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@dell.com>
---
 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
-- 
1.7.3.1

With regards,
Narendra K

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-11-26  2:09 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-03 16:55 [PATCH 1/1] UDEV - Add 'udevlom' command line param to start_udev Narendra_K
2010-11-03 18:05 ` Greg KH
2010-11-03 18:32   ` Marco d'Itri
2010-11-04  8:37     ` Sujit K M
2010-11-05  2:58   ` Matt Domsch
2010-11-08  8:42     ` Sujit K M
2010-11-08 18:17       ` Matt Domsch
2010-11-15 16:47     ` Matt Domsch
2010-11-15 17:16       ` Ben Hutchings
2010-11-15 19:32         ` Rick Jones
2010-11-24 20:57           ` Loke, Chetan
2010-11-24 21:13           ` Loke, Chetan
2010-11-25  2:56             ` Bill Fink
2010-11-26  2:09               ` Matt Domsch
2010-11-10 16:32 ` Harald Hoyer
2010-11-10 16:37   ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).